Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update codecov upload using GH Actions #692

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading