File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
jobs :
7
7
base_coverage :
8
+ continue-on-error : true
8
9
runs-on : ubuntu-latest
9
10
steps :
10
11
- uses : actions/checkout@v3
@@ -111,11 +112,13 @@ jobs:
111
112
name : coverage-3.12
112
113
113
114
- name : Download code coverage report for base branch
115
+ continue-on-error : true
114
116
uses : actions/download-artifact@v4
115
117
with :
116
118
name : base-coverage.lcov
117
119
118
120
- name : Generate Code Coverage report
121
+ if : success()
119
122
id : code-coverage
120
123
uses : barecheck/code-coverage-action@v1
121
124
with :
@@ -124,4 +127,15 @@ jobs:
124
127
base-lcov-file : " ./base-coverage.lcov"
125
128
minimum-ratio : 0
126
129
send-summary-comment : true
127
- show-annotations : " warning"
130
+ show-annotations : " warning"
131
+
132
+ - name : Generate Code Coverage report if base job fails
133
+ if : failure()
134
+ id : code-coverage-without-base
135
+ uses : barecheck/code-coverage-action@v1
136
+ with :
137
+ barecheck-github-app-token : ${{ secrets.BARECHECK_GITHUB_APP_TOKEN }}
138
+ lcov-file : " ./coverage.lcov"
139
+ minimum-ratio : 0
140
+ send-summary-comment : true
141
+ show-annotations : " warning"
You can’t perform that action at this time.
0 commit comments