Skip to content

Commit

Permalink
Run CI with PHP 8.2 (#516)
Browse files Browse the repository at this point in the history
* Run CI with PHP 8.2

* Add `--ignore-platform-requirements` flag in CI

* Pretend PHP 8.2 is 8.1 in CI

* Enable `convertDeprecationsToExceptions="true"` in PHPUnit

* setup-php with error_reporting=E_ALL
  • Loading branch information
TimWolla authored Jun 20, 2022
1 parent b4719a1 commit fbe99c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,24 @@ jobs:
strategy:
max-parallel: 10
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']

steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=E_ALL
coverage: 'none'
extensions: mbstring

- name: Checkout code
uses: actions/checkout@v3

- name: Fake PHP version for 8.2.
run: composer config platform.php 8.1.99
if: matrix.php == '8.2'

- name: Install dependencies
run: composer update --no-interaction --no-progress

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ jobs:
strategy:
max-parallel: 10
matrix:
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']

steps:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=E_ALL
coverage: none

- name: Checkout code
uses: actions/checkout@v3

- name: Fake PHP version for 8.2.
run: composer config platform.php 8.1.99
if: matrix.php == '8.2'

- name: Install dependencies
run: composer update --no-interaction --no-progress

Expand Down
1 change: 1 addition & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
bootstrap="vendor/autoload.php"
convertDeprecationsToExceptions="true"
>
<testsuites>
<testsuite name="Guzzle PSR-7 Unit Test Suite">
Expand Down

0 comments on commit fbe99c4

Please sign in to comment.