Skip to content

Commit

Permalink
[TASK] Add PHP 8.2 to test matrix (#394)
Browse files Browse the repository at this point in the history
Releases: main, 7, 6
  • Loading branch information
lolli42 authored Aug 1, 2022
1 parent 0059255 commit 92ca043
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: [ '8.1' ]
php: [ '8.1' , '8.2' ]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -22,6 +22,7 @@ jobs:
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate

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

- name: Lint PHP
Expand Down
3 changes: 2 additions & 1 deletion Build/Scripts/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ Options:
- phpstanGenerateBaseline: regenerate phpstan baseline, handy after phpstan updates
- unit (default): PHP unit tests
-p <8.1>
-p <8.1|8.2>
Specifies the PHP minor version to be used
- 8.1 (default): use PHP 8.1
- 8.2: use PHP 8.2
-x
Only with -s cgl|unit
Expand Down
7 changes: 6 additions & 1 deletion Build/testing-docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ services:
set -x
fi
php -v | grep '^PHP';
composer update --no-progress --no-interaction;
if [ ${DOCKER_PHP_IMAGE} = "php82" ]; then
# @todo: Needed until prophecy (req by phpunit) allows PHP 8.2, https://github.com/phpspec/prophecy/issues/556
composer update --no-progress --no-interaction --ignore-platform-req=php+
else
composer update --no-progress --no-interaction;
fi
"
lint:
image: typo3/core-testing-${DOCKER_PHP_IMAGE}:latest
Expand Down

0 comments on commit 92ca043

Please sign in to comment.