Skip to content

Commit 0b5c311

Browse files
committed
ci: switch coverage reporting from Codecov to Code Climate in GitHub Actions workflow
1 parent 763c4e6 commit 0b5c311

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,22 @@ jobs:
4545
fi
4646
echo "Coverage ($COVERAGE%) is above threshold ($COVERAGE_THRESHOLD%)"
4747
48-
- name: Upload coverage to Codecov
49-
uses: codecov/codecov-action@v4
48+
- name: Upload coverage to Code Climate
49+
uses: paambaati/codeclimate-action@v9.0.0
50+
env:
51+
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_KEY }}
5052
with:
51-
token: ${{ secrets.CODECOV_TOKEN }}
52-
directory: ./coverage/
53-
flags: unittests
54-
name: codecov-umbrella
55-
fail_ci_if_error: true
53+
coverageCommand: yarn test --coverage --coverageReporters lcov
54+
coverageLocations: |
55+
${{github.workspace}}/coverage/lcov.info:lcov
56+
# - name: Upload coverage to Codecov
57+
# uses: codecov/codecov-action@v4
58+
# with:
59+
# token: ${{ secrets.CODECOV_TOKEN }}
60+
# directory: ./coverage/
61+
# flags: unittests
62+
# name: codecov-umbrella
63+
# fail_ci_if_error: true
5664

5765
build-library:
5866
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)