Skip to content

Commit 9017883

Browse files
committed
Use Qltysh and Codecov
1 parent 5273f49 commit 9017883

1 file changed

Lines changed: 12 additions & 20 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ jobs:
3939
restore-keys: |
4040
${{ runner.os }}-${{ matrix.setup }}-coverage-${{ matrix.php }}-
4141
42-
- name: Code Climate Test Reporter Preparation
43-
run: |
44-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
45-
chmod +x ./cc-test-reporter
46-
./cc-test-reporter before-build
47-
env:
48-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
49-
5042
- name: Install dependencies
5143
if: steps.composer-cache.outputs.cache-hit != 'true'
5244
run: |
@@ -57,15 +49,15 @@ jobs:
5749
- name: Run test suite
5850
run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml --default-time-limit=3
5951

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

0 commit comments

Comments
 (0)