Skip to content

Commit

Permalink
preventively support PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed Sep 24, 2023
1 parent 762be0e commit 9049235
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
name: CI

on: push

jobs:
run:
name: Continuous Integration
name: Continuous Integration on PHP ${{ matrix.php-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.2', '8.3']
env:
PHP_CS_FIXER_IGNORE_ENV: 1
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: ${{ matrix.php-version }}
- run: composer install
- run: php vendor/bin/php-cs-fixer fix --dry-run -v
- run: composer test
- if: ${{ always() }}
- if: ${{ always() && matrix.php-version == '8.2' }}
run: php vendor/bin/ocular code-coverage:upload --format=php-clover build/coverage.xml
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "MIT",
"require": {
"php-64bit": "^8.2.0"
"php-64bit": "^8.2.0 || ^8.3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.28",
Expand Down

0 comments on commit 9049235

Please sign in to comment.