Skip to content

Commit

Permalink
Update codecov upload using GH Actions (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
jj22ee authored Oct 14, 2024
1 parent 5539f1a commit 9552603
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,12 @@ jobs:
npx lerna run testcov
npx lerna run reportcov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CI: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: matrix.coverage
with:
directory: ./packages/core/
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.lcov
verbose: true
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"test-async": "npm run compile && mocha --recursive ./dist/test_async/ -R spec",
"clean": "rm -rf dist && rm -rf node_modules",
"testcov": "nyc npm run test",
"reportcov": "nyc report --reporter=text-lcov > coverage.lcov && codecov"
"reportcov": "nyc report --reporter=text-lcov > coverage.lcov"
},
"keywords": [
"amazon",
Expand Down

0 comments on commit 9552603

Please sign in to comment.