Skip to content

Commit d1f31cb

Browse files
committed
update phpunit workflow template - PHP range from 8.1 to 8.4
1 parent c2d2f2a commit d1f31cb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/Template/.github/workflows/phpunit.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
if: (! contains(github.event.head_commit.message, '[ci skip]'))
2626
strategy:
2727
matrix:
28-
php-versions: ['7.4', '8.0', '8.1', '8.2']
28+
php-versions: ['8.1', '8.2', '8.3', '8.4']
2929

3030
steps:
3131
- name: Checkout
@@ -53,10 +53,15 @@ jobs:
5353

5454
- name: Install dependencies
5555
run: |
56+
OPTIONS="${{ env.COMPOSER_UPDATE_FLAGS }} --no-progress --no-interaction --prefer-dist --optimize-autoloader"
57+
if [[ '${{ matrix.php-versions }}' == '8.4' ]]; then
58+
OPTIONS="$OPTIONS --ignore-platform-reqs"
59+
fi
60+
5661
if [ -f composer.lock ]; then
57-
composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
62+
composer install $OPTIONS
5863
else
59-
composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
64+
composer update $OPTIONS
6065
fi
6166
6267
- name: Test with PHPUnit

0 commit comments

Comments
 (0)