Skip to content

Commit

Permalink
Add support for PHP 8.3, run tests with PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Nov 24, 2023
1 parent a9774a8 commit 01d3f5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
14 changes: 7 additions & 7 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 }} with ${{ matrix.prefer-versions }} lib versions)
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.php == '8.3' }}
continue-on-error: ${{ matrix.php == '8.4' }}

strategy:
fail-fast: false
matrix:
operating-system: ['ubuntu-latest']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
prefer-versions: ['latest']
include:
- php: '7.2'
Expand Down Expand Up @@ -46,12 +46,12 @@ jobs:
with:
composer-options: --prefer-lowest

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

- name: "Install Composer dependencies (PHP 8.3)"
if: ${{ matrix.php >= '8.3' }}
- name: "Install Composer dependencies (PHP 8.4)"
if: ${{ matrix.php >= '8.4' }}
uses: "ramsey/composer-install@v2"
with:
composer-options: --ignore-platform-reqs
Expand All @@ -65,7 +65,7 @@ jobs:
run: composer run phpstan -- --error-format=github

- name: Send coverage report to Codecov
if: ${{ success() && matrix.php == '8.2' }}
if: ${{ success() && matrix.php == '8.3' }}
uses: codecov/codecov-action@v3
with:
files: ./.code-coverage/clover.xml
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased](https://github.com/Art4/WP-Requests-PSR18-Adapter/compare/1.1.0...HEAD)

### Added

- Add support for PHP 8.3

## [1.1.0 - 2023-08-31](https://github.com/Art4/WP-Requests-PSR18-Adapter/compare/1.0.1...1.1.0)

### Added
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.0 || ~8.1.0 || ~8.2.0",
"php": "^7.2 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"psr/http-client": "^1.0",
"psr/http-factory": "^1.0",
"psr/http-message": "^1.1 || ^2.0",
Expand Down

0 comments on commit 01d3f5f

Please sign in to comment.