@@ -13,13 +13,13 @@ jobs:
1313 strategy :
1414 fail-fast : false
1515 matrix :
16- php : ['7 .4']
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
@@ -29,34 +29,27 @@ jobs:
2929
3030 - name : Cache Composer packages
3131 id : composer-cache
32- uses : actions/cache@v2
32+ uses : actions/cache@v4
3333 with :
3434 path : vendor
3535 key : ${{ runner.os }}-${{ matrix.setup }}-v2-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
3636 restore-keys : |
3737 ${{ runner.os }}-${{ matrix.setup }}-v2-php-${{ matrix.php }}-
3838
39- - name : Code Climate Test Reporter Preparation
40- if : matrix.php == '7.4' && matrix.setup == 'stable'
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-
4839 - name : Install dependencies
4940 if : steps.composer-cache.outputs.cache-hit != 'true'
5041 run : composer update --prefer-dist --prefer-${{ matrix.setup }} --no-progress --no-interaction
5142
5243 - name : Run test suite
5344 run : vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
5445
55- - name : Code Climate Test Reporter
56- if : ${{ matrix.php == '7.4' && matrix.setup == 'stable' && env.CC_TEST_REPORTER_ID != '' }}
57- run : |
58- cp coverage.xml clover.xml
59- bash <(curl -s https://codecov.io/bash)
60- ./cc-test-reporter after-build --coverage-input-type clover --exit-code 0
61- env :
62- CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
46+ - name : Coverage - Qltysh
47+ uses : qltysh/qlty-action/coverage@v2
48+ with :
49+ token : ${{ secrets.QLTY_COVERAGE_TOKEN }}
50+ files : clover.xml
51+
52+ - name : Coverage - Codecov
53+ uses : codecov/codecov-action@v5
54+ with :
55+ token : ${{ secrets.CODECOV_TOKEN }}
0 commit comments