File tree 3 files changed +34
-0
lines changed
3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 66
66
run : yarn install --frozen-lockfile
67
67
- name : Run Unit Tests
68
68
run : yarn test
69
+ - name : Push code coverage to codecov
70
+ uses :
codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # [email protected]
71
+ with :
72
+ # Need to specify the token here, as the codecov action requires it for protected branches.
73
+ # If not set, this error is shown: `Token required because branch is protected`
74
+ token : ${{ secrets.CODECOV_TOKEN }}
75
+ # Do not fail the build if codecov fails to report the coverage.
76
+ fail_ci_if_error : false
77
+ flags : unit-tests
69
78
70
79
job_e2e_test :
71
80
name : ${{ matrix.wizard }} E2E Tests
@@ -101,3 +110,12 @@ jobs:
101
110
run : yarn install --frozen-lockfile
102
111
- name : Run End-to-End Tests
103
112
run : yarn test:e2e ${{ matrix.wizard }}
113
+ - name : Push code coverage to codecov
114
+ uses :
codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # [email protected]
115
+ with :
116
+ # Need to specify the token here, as the codecov action requires it for protected branches.
117
+ # If not set, this error is shown: `Token required because branch is protected`
118
+ token : ${{ secrets.CODECOV_TOKEN }}
119
+ # Do not fail the build if codecov fails to report the coverage.
120
+ fail_ci_if_error : false
121
+ flags : e2e-tests
Original file line number Diff line number Diff line change
1
+ # Reference: https://docs.codecov.com/docs/codecovyml-reference
2
+
3
+ codecov :
4
+ # Codecov should wait for all other statuses to pass before sending its status.
5
+ require_ci_to_pass : true
6
+ notify :
7
+ # Codecov will wait for all CI statuses to complete before sending its status.
8
+ # Note: Codecov considers all non-codecov statuses to be CI statuses.
9
+ wait_for_ci : true
10
+
11
+ coverage :
12
+ # The coverage percentage that should be reached before the build is considered successful.
13
+ # Note: This is set to a low value, as the test coverage is not high yet.
14
+ # When adding more test coverage, consider increasing this value.
15
+ range : 40...100
Original file line number Diff line number Diff line change 5
5
} ) ;
6
6
7
7
export default {
8
+ collectCoverage : true ,
8
9
testTimeout : 360000 ,
9
10
testEnvironment : 'node' ,
10
11
testMatch : [ '**/*.test.ts' ] ,
You can’t perform that action at this time.
0 commit comments