Skip to content

Commit a2a1d87

Browse files
committed
Only upload coverage data if coverage reports generated
1 parent cbe9bae commit a2a1d87

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ jobs:
115115
dub test --arch=$ARCH --combined
116116
shell: bash
117117
- name: Upload coverage data
118+
if: ${{ !(contains(matrix.dc, 'beta') || contains(matrix.dc, 'master')) }}
118119
uses: codecov/codecov-action@v5
119120
with:
120121
fail_ci_if_error: true
@@ -175,6 +176,7 @@ jobs:
175176
dub test --arch=$ARCH --combined
176177
shell: bash
177178
- name: Upload coverage data
179+
if: ${{ !(contains(matrix.dc, 'beta') || contains(matrix.dc, 'master')) }}
178180
uses: codecov/codecov-action@v5
179181
with:
180182
fail_ci_if_error: true
@@ -239,6 +241,7 @@ jobs:
239241
dub test --arch=$ARCH --build=unittest-cov-ci -c ci-test
240242
shell: bash
241243
- name: Upload coverage data
244+
if: ${{ !(contains(matrix.dc, 'beta') || contains(matrix.dc, 'master')) }}
242245
uses: codecov/codecov-action@v5
243246
with:
244247
fail_ci_if_error: true

0 commit comments

Comments
 (0)