Skip to content

Commit 9552603

Browse files
authored
Update codecov upload using GH Actions (#692)
1 parent 5539f1a commit 9552603

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/pr-build.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,12 @@ jobs:
9090
npx lerna run testcov
9191
npx lerna run reportcov
9292
env:
93-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9493
CI: true
94+
- name: Upload coverage to Codecov
95+
uses: codecov/codecov-action@v4
96+
if: matrix.coverage
97+
with:
98+
directory: ./packages/core/
99+
token: ${{ secrets.CODECOV_TOKEN }}
100+
files: ./coverage.lcov
101+
verbose: true

packages/core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"test-async": "npm run compile && mocha --recursive ./dist/test_async/ -R spec",
4343
"clean": "rm -rf dist && rm -rf node_modules",
4444
"testcov": "nyc npm run test",
45-
"reportcov": "nyc report --reporter=text-lcov > coverage.lcov && codecov"
45+
"reportcov": "nyc report --reporter=text-lcov > coverage.lcov"
4646
},
4747
"keywords": [
4848
"amazon",

0 commit comments

Comments
 (0)