@@ -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,28 @@ 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 : ${{ runner.os }}-${{ matrix.setup }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
3737 restore-keys : |
3838 ${{ runner.os }}-${{ matrix.setup }}-php-${{ matrix.php }}-
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 : |
51- ${{ matrix.php >= 8 && 'composer require --no-update phpunit/phpunit:^9.5.10 --no-interaction;' || '' }}
5243 composer update --prefer-dist --no-interaction ${{ format('--prefer-{0}', matrix.setup) || '' }}
5344
5445 - name : Run test suite
5546 run : vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
5647
57- - name : Code Climate Test Reporter
58- if : ${{ env.CC_TEST_REPORTER_ID != '' }}
59- run : |
60- 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
63- env :
64- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
65- CODACY_PROJECT_TOKEN : ${{ secrets.CODACY_PROJECT_TOKEN }}
48+ - name : Coverage - Qltysh
49+ uses : qltysh/qlty-action/coverage@v2
50+ with :
51+ token : ${{ secrets.QLTY_COVERAGE_TOKEN }}
52+ files : clover.xml
53+
54+ - name : Coverage - Codecov
55+ uses : codecov/codecov-action@v5
56+ with :
57+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments