@@ -17,11 +17,14 @@ jobs:
1717 strategy :
1818 fail-fast : false
1919 matrix :
20- php-version : ['8.1', '8.2']
21- prefer-lowest : ['']
20+ php-version : ['8.1', '8.2', '8.3' ]
21+ dependencies : ['highest ']
2222 include :
23+ - php-version : ' 8.4'
24+ dependencies : ' highest'
25+ composer-options : ' --ignore-platform-req=php'
2326 - php-version : ' 8.1'
24- prefer-lowest : ' prefer- lowest'
27+ dependencies : ' lowest'
2528
2629 steps :
2730 - uses : actions/checkout@v4
@@ -42,27 +45,27 @@ jobs:
4245 wkhtmltopdf --version
4346
4447 - name : Composer install
45- run : |
46- if ${{ matrix.prefer-lowest == 'prefer-lowest' }}; then
47- composer update --prefer-lowest --prefer-stable
48- else
49- composer install
50- fi
48+ uses : ramsey/composer-install@v3
49+ with :
50+ dependency-versions : ${{ matrix.dependencies }}
51+ composer-options : ${{ matrix.composer-options }}
5152
5253 - name : Setup problem matchers for PHPUnit
5354 run : echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
5455
5556 - name : Run PHPUnit
5657 run : |
57- if [[ ${{ matrix.php-version }} == '8.1 ' ]]; then
58- vendor/bin/phpunit --coverage-clover=coverage.xml
58+ if [[ ${{ matrix.php-version }} == '8.3 ' ]]; then
59+ vendor/bin/phpunit --display-warnings --display-deprecations --display-incomplete --display-skipped -- coverage-clover=coverage.xml
5960 else
60- vendor/bin/phpunit
61+ vendor/bin/phpunit --display-warnings --display-deprecations
6162 fi
6263
6364 - name : Code Coverage Report
64- if : matrix.php-version == '8.1'
65- uses : codecov/codecov-action@v3
65+ if : matrix.php-version == '8.3'
66+ uses : codecov/codecov-action@v4
67+ env :
68+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
6669
6770 cs-stan :
6871 uses :
cakephp/.github/.github/workflows/[email protected]
0 commit comments