Skip to content

Commit

Permalink
[TASK] Add PHP 8.4 to test matrix (#610)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli42 authored Aug 10, 2024
1 parent 3b12677 commit d40dcee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.2', '8.3' ]
php: [ '8.2', '8.3', '8.4' ]
steps:

- name: Extract branch name
Expand All @@ -29,12 +29,14 @@ jobs:
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate

- name: CGL
if: ${{ matrix.php <= '8.3' }}
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s cgl -n

- name: Lint PHP
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint

- name: Phpstan
if: ${{ matrix.php <= '8.3' }}
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s phpstan

- name: Unit Tests
Expand Down
3 changes: 2 additions & 1 deletion Build/Scripts/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Options:
Specifies the PHP minor version to be used
- 8.2 (default): use PHP 8.2
- 8.3: use PHP 8.3
- 8.4: use PHP 8.4
-x
Only with -s cgl|unit
Expand Down Expand Up @@ -113,7 +114,7 @@ while getopts ":b:s:p:hxn" OPT; do
;;
p)
PHP_VERSION=${OPTARG}
if ! [[ ${PHP_VERSION} =~ ^(8.2|8.3)$ ]]; then
if ! [[ ${PHP_VERSION} =~ ^(8.2|8.3|8.4)$ ]]; then
INVALID_OPTIONS+=("${OPTARG}")
fi
;;
Expand Down

0 comments on commit d40dcee

Please sign in to comment.