Skip to content

Commit

Permalink
adding PHP8.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Mar 24, 2024
1 parent e49d91d commit 2b8ece0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
matrix:
php: ['8.1', '8.2', '8.3']
stability: [prefer-lowest, prefer-stable]
include:
- php: '8.4'
flags: "--ignore-platform-req=php"
phpunit-flags: '--no-coverage'
stability: prefer-stable
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down Expand Up @@ -45,11 +50,16 @@ jobs:

- name: Run Unit tests with coverage
run: composer phpunit -- ${{ matrix.phpunit-flags }}
if: ${{ matrix.php == '8.3' || matrix.php == '8.2' || matrix.php == '8.1'}}

- name: Run Unit tests without coverage
run: composer phpunit:min
if: ${{ matrix.php == '8.4'}}

- name: Run static analysis
run: composer phpstan
if: ${{ matrix.php == '8.2' && matrix.stability == 'prefer-stable'}}
if: ${{ matrix.php == '8.3' && matrix.stability == 'prefer-stable'}}

- name: Run Coding style rules
run: composer phpcs:fix
if: ${{ matrix.php == '8.2' && matrix.stability == 'prefer-stable'}}
if: ${{ matrix.php == '8.3' && matrix.stability == 'prefer-stable'}}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"phpstan/phpstan-phpunit": "^1.3.16",
"phpstan/phpstan-strict-rules": "^1.5.2",
"phpunit/phpunit": "^10.5.15",
"phpunit:min": "phpunit --no-coverage",
"symfony/var-dumper": "^6.4.4"
},
"autoload": {
Expand Down

0 comments on commit 2b8ece0

Please sign in to comment.