Skip to content

Commit bf726c7

Browse files
committed
Fix coverage job
1 parent 926db82 commit bf726c7

1 file changed

Lines changed: 10 additions & 17 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ jobs:
3737
restore-keys: |
3838
coverage-${{ 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: |
@@ -60,12 +52,13 @@ jobs:
6052
- name: Run test suite
6153
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
6254

63-
- name: Code Climate Test Reporter
64-
if: ${{ env.CC_TEST_REPORTER_ID != '' }}
65-
run: |
66-
cp coverage.xml clover.xml
67-
bash <(curl -s https://codecov.io/bash)
68-
./cc-test-reporter after-build --coverage-input-type clover --exit-code 0
69-
composer config version 1.9.0
70-
env:
71-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
55+
- name: Coverage - Qltysh
56+
uses: qltysh/qlty-action/coverage@v2
57+
with:
58+
token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
59+
files: clover.xml
60+
61+
- name: Coverage - Codecov
62+
uses: codecov/codecov-action@v5
63+
with:
64+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)