File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
1
comment : off
2
2
3
- ignore :
4
- - legacy/**/*
3
+ # ignore:
4
+ # - legacy/**/*
5
5
6
6
coverage :
7
7
status :
Original file line number Diff line number Diff line change 76
76
file : ./coverage_unit.txt
77
77
flags : unit
78
78
79
+ - name : Send legacy tests coverage to Codecov
80
+ # Since secrets aren't available on forks, we only
81
+ # upload coverage on `push`. This might change if
82
+ # Codecov whitelists GitHub, lifting the need
83
+ # for a token.
84
+ if : >
85
+ matrix.operating-system != 'windows-2019' &&
86
+ github.event_name == 'push'
87
+
88
+ with :
89
+ token : ${{secrets.CODECOV_TOKEN}}
90
+ file : ./coverage_legacy.txt
91
+ flags : unit
92
+
79
93
- name : Send integration tests coverage to Codecov
80
94
# Since secrets aren't available on forks, we only
81
95
# upload coverage on `push`. This might change if
Original file line number Diff line number Diff line change 32
32
test-legacy :
33
33
desc : Run tests for the `legacy` package
34
34
cmds :
35
- - go test {{ default "-v -failfast" .GOFLAGS }} ./legacy/...
35
+ - go test {{ default "-v -failfast" .GOFLAGS }} -coverprofile=coverage_legacy.txt ./legacy/...
36
36
37
37
test-unit-race :
38
38
desc : Run unit tests only with race condition detection
You can’t perform that action at this time.
0 commit comments