Skip to content

Commit 6798c3b

Browse files
Allow base_coverage job to fail
If there is a problem on master then base_coverage will never pass meaning that coverage will never be run.
1 parent bc19385 commit 6798c3b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
jobs:
77
base_coverage:
8+
continue-on-error: true
89
runs-on: ubuntu-latest
910
steps:
1011
- uses: actions/checkout@v3
@@ -116,6 +117,7 @@ jobs:
116117
name: base-coverage.lcov
117118

118119
- name: Generate Code Coverage report
120+
if: success()
119121
id: code-coverage
120122
uses: barecheck/code-coverage-action@v1
121123
with:
@@ -124,4 +126,15 @@ jobs:
124126
base-lcov-file: "./base-coverage.lcov"
125127
minimum-ratio: 0
126128
send-summary-comment: true
127-
show-annotations: "warning"
129+
show-annotations: "warning"
130+
131+
- name: Generate Code Coverage report if base job fails
132+
if: failure()
133+
id: code-coverage
134+
uses: barecheck/code-coverage-action@v1
135+
with:
136+
barecheck-github-app-token: ${{ secrets.BARECHECK_GITHUB_APP_TOKEN }}
137+
lcov-file: "./coverage.lcov"
138+
minimum-ratio: 0
139+
send-summary-comment: true
140+
show-annotations: "warning"

0 commit comments

Comments
 (0)