Skip to content

Commit

Permalink
add codecov coverage upload
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime committed Feb 7, 2025
1 parent 69d8b03 commit 9a02bdf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ jobs:
run: yarn install --frozen-lockfile
- name: Run Unit Tests
run: yarn test
- name: Push code coverage to codecov
uses: codecov/[email protected]
with:
# Do not fail the build if codecov fails to report the coverage.
fail_ci_if_error: false
flags: unittests

job_e2e_test:
name: ${{ matrix.wizard }} E2E Tests
Expand Down Expand Up @@ -101,3 +107,9 @@ 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/[email protected]
with:
# Do not fail the build if codecov fails to report the coverage.
fail_ci_if_error: false
flags: e2e-tests
8 changes: 7 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
@@ -1,9 +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:
range: 70...100
# 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

0 comments on commit 9a02bdf

Please sign in to comment.