Skip to content

Commit

Permalink
Run CI against PHP 8.4 (#2321)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin authored Nov 21, 2024
1 parent 267d0e9 commit 33631e8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3']
php-version: ['8.1', '8.4']
db-type: [sqlite, mysql, pgsql]
prefer-lowest: ['']
include:
- php-version: '8.3'
db-type: sqlite
- php-version: '8.2'
db-type: mysql
prefer-lowest: ''
- php-version: '8.1'
db-type: sqlite
prefer-lowest: prefer-lowest

steps:
- name: Setup MySQL latest
if: matrix.db-type == 'mysql' && matrix.php-version == '8.3'
if: matrix.db-type == 'mysql' && matrix.php-version == '8.4'
run: docker run --rm --name=mysqld -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=cakephp -p 3306:3306 -d mysql:8.4

- name: Setup MySQL 8.0
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
if [[ ${{ matrix.db-type }} == 'mysql' ]]; then export MYSQL_DSN='mysql://root:root@127.0.0.1/phinx'; fi
if [[ ${{ matrix.db-type }} == 'pgsql' ]]; then export PGSQL_DSN='pgsql://postgres:postgres@127.0.0.1/phinx'; fi
if [[ ${{ matrix.php-version }} == '8.2' ]]; then
if [[ ${{ matrix.prefer-lowest != 'prefer-lowest' }} ]]; then
export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=coverage.xml
else
vendor/bin/phpunit
Expand All @@ -112,7 +112,7 @@ jobs:
run: composer require --dev dereuromark/composer-prefer-lowest && vendor/bin/validate-prefer-lowest -m

- name: Submit code coverage
if: matrix.php-version == '8.2'
if: ${{ matrix.prefer-lowest != 'prefer-lowest' }}
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 33631e8

Please sign in to comment.