-
-
Notifications
You must be signed in to change notification settings - Fork 64
chore: add coverage upload to Codecov #781
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e0da86f
chore: add Codecov configuration file
philprime 69d8b03
revert changes in package.json
philprime 9a02bdf
add codecov coverage upload
philprime 44cc8db
pin codecov-action sha
philprime 50c009d
small typo
philprime 5da8792
add codecov token
philprime 12676f7
enable code coverage for e2e tests
philprime 8f2d284
revert e2e test assets
philprime 0fdacc9
revert more e2e test assets
philprime File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,15 @@ jobs: | |
run: yarn install --frozen-lockfile | ||
- name: Run Unit Tests | ||
run: yarn test | ||
- name: Push code coverage to codecov | ||
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # [email protected] | ||
with: | ||
# Need to specify the token here, as the codecov action requires it for protected branches. | ||
# If not set, this error is shown: `Token required because branch is protected` | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
# Do not fail the build if codecov fails to report the coverage. | ||
fail_ci_if_error: false | ||
flags: unit-tests | ||
|
||
job_e2e_test: | ||
name: ${{ matrix.wizard }} E2E Tests | ||
|
@@ -101,3 +110,12 @@ jobs: | |
run: yarn install --frozen-lockfile | ||
- name: Run End-to-End Tests | ||
run: yarn test:e2e ${{ matrix.wizard }} | ||
- name: Push code coverage to codecov | ||
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # [email protected] | ||
with: | ||
# Need to specify the token here, as the codecov action requires it for protected branches. | ||
# If not set, this error is shown: `Token required because branch is protected` | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
# Do not fail the build if codecov fails to report the coverage. | ||
fail_ci_if_error: false | ||
flags: e2e-tests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Reference: https://docs.codecov.com/docs/codecovyml-reference | ||
|
||
codecov: | ||
# Codecov should wait for all other statuses to pass before sending its status. | ||
require_ci_to_pass: true | ||
notify: | ||
# Codecov will wait for all CI statuses to complete before sending its status. | ||
# Note: Codecov considers all non-codecov statuses to be CI statuses. | ||
wait_for_ci: true | ||
|
||
coverage: | ||
# The coverage percentage that should be reached before the build is considered successful. | ||
# Note: This is set to a low value, as the test coverage is not high yet. | ||
# When adding more test coverage, consider increasing this value. | ||
range: 40...100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.