@@ -13,13 +13,13 @@ jobs:
1313 strategy :
1414 fail-fast : false
1515 matrix :
16- php : ['8.2 ']
16+ php : ['8.4 ']
1717 setup : ['stable']
1818
1919 name : PHP
2020
2121 steps :
22- - uses : actions/checkout@v2
22+ - uses : actions/checkout@v5
2323
2424 - name : Setup PHP
2525 uses : shivammathur/setup-php@v2
@@ -30,36 +30,39 @@ jobs:
3030
3131 - name : Cache Composer packages
3232 id : composer-cache
33- uses : actions/cache@v2
33+ uses : actions/cache@v4
3434 with :
3535 path : vendor
3636 key : coverage-${{ matrix.php }}-${{ runner.os }}-${{ matrix.setup }}-${{ hashFiles('**/composer.lock') }}
3737 restore-keys : |
3838 coverage-${{ matrix.php }}-${{ runner.os }}-${{ matrix.setup }}-
3939
40- - name : Code Climate Test Reporter Preparation
41- run : |
42- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
43- chmod +x ./cc-test-reporter
44- ./cc-test-reporter before-build
45- env :
46- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
47-
4840 - name : Install dependencies
4941 if : steps.composer-cache.outputs.cache-hit != 'true'
5042 run : |
5143 ${{ matrix.php >= 8 && 'composer require --no-update phpunit/phpunit:^9.6.12 --no-interaction;' || '' }}
5244 composer update --prefer-dist --no-interaction ${{ format('--prefer-{0}', matrix.setup) || '' }}
5345
5446 - name : Run test suite
55- run : vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
56-
57- - name : Code Climate Test Reporter
58- if : ${{ env.CC_TEST_REPORTER_ID != '' }}
5947 run : |
48+ vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
6049 cp coverage.xml clover.xml
61- bash <(curl -s https://codecov.io/bash)
62- ./cc-test-reporter after-build --coverage-input-type clover --exit-code 0
50+
51+ - name : Code Climate Test Reporter
52+ uses : aktions/codeclimate-test-reporter@v1
53+ with :
54+ codeclimate-test-reporter-id : ${{ secrets.CC_TEST_REPORTER_ID }}
55+ command : after-build -t clover
56+ env :
57+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true
58+ continue-on-error : true
59+
60+ - name : Upload coverage reports to Codecov
61+ uses : codecov/codecov-action@v5.5.1
62+ with :
63+ token : ${{ secrets.CODECOV_TOKEN }}
64+
65+ - name : Run Codacy Analysis CLI
66+ uses : codacy/codacy-analysis-cli-action@master
6367 env :
64- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
6568 CODACY_PROJECT_TOKEN : ${{ secrets.CODACY_PROJECT_TOKEN }}
0 commit comments