Skip to content

Commit

Permalink
Test on PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia authored Mar 24, 2024
1 parent 240b2fb commit fcd2017
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/autoformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
coverage: none
extensions: mbstring
php-version: 8.2
php-version: 8.3

- uses: ramsey/composer-install@v2

Expand All @@ -37,7 +37,7 @@ jobs:
with:
coverage: none
extensions: mbstring
php-version: 8.2
php-version: 8.3

- uses: ramsey/composer-install@v2

Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
with:
coverage: none
extensions: mbstring
php-version: 8.2
php-version: 8.3

- uses: ramsey/composer-install@v2

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- 8.0
- 8.1
- 8.2
- 8.3

steps:
- name: Checkout code
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
- 8.0
- 8.1
- 8.2
- 8.3
dependencies:
- highest
include:
Expand All @@ -37,7 +38,6 @@ jobs:
with:
php-version: ${{ matrix.php-version }}
coverage: pcov
ini-values: zend.assertions=1, assert.exception=1

- name: Install dependencies with Composer
uses: ramsey/composer-install@v2
Expand All @@ -48,7 +48,7 @@ jobs:
- name: Run PHPUnit
run: |
export $ENV
vendor/bin/phpunit --coverage-clover=coverage.xml
composer test -- --coverage-clover=coverage.xml
- name: Upload coverage file
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@
"php-cs-fixer": "php-cs-fixer fix",
"rector": "rector process",
"stan": "phpstan",
"test": "phpunit"
"test": "php -d zend.exception_ignore_args=Off -d zend.assertions=On -d assert.active=On -d assert.exception=On vendor/bin/phpunit"
}
}
2 changes: 1 addition & 1 deletion tests/Type/EnumTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ public function testAllowsSimpleArrayAsValues(): void
'extensions' => [
'debugMessage' => 'Expected a value of type SimpleEnum but received: "WRONG". Cannot serialize value as enum: "WRONG"',
'trace' => [
['call' => 'GraphQL\Type\Definition\EnumType::serialize()'],
['call' => 'GraphQL\Type\Definition\EnumType::serialize(\'WRONG\')'],
],
],
],
Expand Down

0 comments on commit fcd2017

Please sign in to comment.