1919 name : PHP ${{ matrix.php }} - ${{ matrix.setup }}
2020
2121 steps :
22- - uses : actions/checkout@v4
22+ - uses : actions/checkout@v5
2323
2424 - name : Setup PHP
2525 uses : shivammathur/setup-php@v2
@@ -46,48 +46,45 @@ jobs:
4646 - name : Install dependencies
4747 if : steps.composer-cache.outputs.cache-hit != 'true'
4848 run : |
49- ${{ matrix.php >= 8.1 && 'composer require --no-update phpunit/phpunit:^8.5.14 --no-interaction' || '' }}
50- composer update --prefer-dist ${{ matrix.setup != 'next' && matrix.setup != 'no-calendar' && format('--prefer-{0}', matrix.setup) || '' }} --no-progress --no-suggest ${{ matrix.php >= 8.1 && '--ignore-platform-req=php' || '' }}
51-
52- - name : Code Climate Test Reporter Preparation
53- if : matrix.php == '7.4' && matrix.setup == 'stable'
54- run : |
55- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter;
56- chmod +x ./cc-test-reporter;
57- ./cc-test-reporter before-build;
58- env :
59- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
49+ composer update --prefer-dist ${{ matrix.setup != 'next' && matrix.setup != 'no-calendar' && format('--prefer-{0}', matrix.setup) || '' }} --no-progress --no-suggest
6050
6151 - name : Fix PHP compatibility
6252 if : matrix.php >= '8.1'
6353 run : php tests/fix-php-compatibility.php
6454
6555 - name : Run test suite
6656 run : |
67- if [[ ${MATRIX_CONFIG} == "7 .4-stable" ]]; then
57+ if [[ ${MATRIX_CONFIG} == "8 .4-stable" ]]; then
6858 vendor/bin/phpunit --coverage-text --coverage-clover=clover.xml;
59+ cp clover.xml coverage.xml
6960 else
7061 vendor/bin/phpunit --no-coverage;
7162 fi;
7263 env :
7364 MATRIX_CONFIG : ${{ matrix.php }}-${{ matrix.setup }}
7465
7566 - name : Code Climate Test Reporter
76- if : ${{ matrix.php == '7.4' && matrix.setup == 'stable' && env.CC_TEST_REPORTER_ID != '' }}
77- run : ./cc-test-reporter after-build --exit-code 0
67+ if : matrix.php == '8.4' && matrix.setup == 'stable'
68+ uses : aktions/codeclimate-test-reporter@v1
69+ with :
70+ codeclimate-test-reporter-id : ${{ secrets.CC_TEST_REPORTER_ID }}
71+ command : after-build -t clover
7872 env :
79- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
73+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
74+ continue-on-error : true
8075
81- - name : Coverage
82- if : matrix.php == '7.4' && matrix.setup == 'stable'
83- run : bash <(curl -s https://codecov.io/bash)
76+ - name : Upload coverage reports to Codecov
77+ if : matrix.php == '8.4' && matrix.setup == 'stable'
78+ uses : codecov/codecov-action@v5.5.1
79+ with :
80+ token : ${{ secrets.CODECOV_TOKEN }}
8481
8582 multitest :
8683 runs-on : ubuntu-latest
8784
8885 strategy :
8986 matrix :
90- php : ['7 .4']
87+ php : ['8 .4']
9188 setup : ['stable']
9289
9390 name : Multitest
@@ -114,7 +111,7 @@ jobs:
114111 - name : Install dependencies
115112 if : steps.composer-cache.outputs.cache-hit != 'true'
116113 run : |
117- composer require kylekatarnls/multi-tester:^1.1 --no-update;
114+ composer require kylekatarnls/multi-tester:^2.5.3 --no-update;
118115 composer update --prefer-dist --prefer-${{ matrix.setup }} --no-progress --no-suggest ${{ matrix.composerOptions }};
119116
120117 - name : Run test suites
0 commit comments