Skip to content

Commit

Permalink
add support for PHP 8.2, add tests for PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Aug 28, 2023
1 parent b8b3b68 commit b07dcb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
tests:
name: Tests (PHP ${{ matrix.php }} on ${{ matrix.operating-system }})
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.php == '8.2' }}
continue-on-error: ${{ matrix.php == '8.3' }}

strategy:
fail-fast: false
matrix:
operating-system: ['ubuntu-latest']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']

steps:
- name: Checkout
Expand All @@ -41,12 +41,12 @@ jobs:
with:
composer-options: --prefer-lowest

- name: "Install Composer dependencies (PHP < 8.2)"
if: ${{ matrix.php >= '7.3' && matrix.php < '8.2' }}
- name: "Install Composer dependencies (PHP < 8.3)"
if: ${{ matrix.php >= '7.3' && matrix.php < '8.3' }}
uses: "ramsey/composer-install@v2"

- name: "Install Composer dependencies (PHP 8.2)"
if: ${{ matrix.php >= '8.2' }}
- name: "Install Composer dependencies (PHP 8.3)"
if: ${{ matrix.php >= '8.3' }}
uses: "ramsey/composer-install@v2"
with:
composer-options: --ignore-platform-reqs
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}
],
"require": {
"php": "^7.2 || ^8.0",
"php": "^7.2 || ~8.1.0 || ~8.2.0",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.0",
Expand Down

0 comments on commit b07dcb3

Please sign in to comment.