Skip to content

Commit ff07901

Browse files
committed
adjust CI for PHP 8.2
1 parent 063aadf commit ff07901

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
db-type: [mysql, pgsql, sqlite]
2222
prefer-lowest: ['']
2323
include:
24+
- php-version: '8.2'
25+
db-type: 'sqlite'
2426
- php-version: '8.1'
2527
db-type: 'sqlite'
2628
- php-version: '7.4'
@@ -69,8 +71,6 @@ jobs:
6971
run: |
7072
if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
7173
composer update --prefer-lowest --prefer-stable
72-
elif ${{ matrix.php-version == '8.1' }}; then
73-
composer update --ignore-platform-reqs
7474
else
7575
composer update
7676
fi
@@ -86,14 +86,14 @@ jobs:
8686
if [[ ${{ matrix.db-type }} == 'pgsql' ]]; then
8787
export DB_URL='postgres://postgres:[email protected]/postgres'
8888
fi
89-
if [[ ${{ matrix.php-version }} == '7.4' && ${{ matrix.db-type }} == 'mysql' ]]; then
89+
if [[ ${{ matrix.php-version }} == '8.1' && ${{ matrix.db-type }} == 'mysql' ]]; then
9090
vendor/bin/phpunit --coverage-clover=coverage.xml
9191
else
9292
vendor/bin/phpunit
9393
fi
9494
9595
- name: Code Coverage Report
96-
if: success() && matrix.php-version == '7.4' && matrix.db-type == 'mysql'
96+
if: success() && matrix.php-version == '8.1' && matrix.db-type == 'mysql'
9797
uses: codecov/codecov-action@v3
9898

9999
cs-stan:

0 commit comments

Comments
 (0)