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

Add token for codecov #3261

Merged
merged 2 commits into from
Jul 31, 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
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ jobs:
- name: Run unit tests
run: |
npm run test-unit
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F unit
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F unit -t ${{ secrets.CODECOV_TOKEN }}

- name: Run integration tests
run: |
npm run test-integration
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F integration
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F integration -t ${{ secrets.CODECOV_TOKEN }}

- name: Run CLI tests
run: |
npm run test-cli
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F cli
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F cli -t ${{ secrets.CODECOV_TOKEN }}

- name: Run library tests
run: |
npm run test-library
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F library
bash <(curl -s https://codecov.io/bash) -c -Z -f .coverage/coverage-final.json -F library -t ${{ secrets.CODECOV_TOKEN }}
12 changes: 8 additions & 4 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,27 @@ coverage:

# coverage status for unit tests
unit:
flags: unit
target: 75
flags:
- unit

# coverage status for integration tests
integration:
flags: integration
target: 50
flags:
- integration

# coverage status for cli tests
cli:
flags: cli
target: 80
flags:
- cli

# coverage status for library tests
library:
flags: library
target: 65
flags:
- library

parsers:
javascript:
Expand Down
Loading