Skip to content

Commit c14dff8

Browse files
authored
Merge pull request #2136 from skyleaworlder/master
[ISSUE 1939] Update workflow, to only generate coverage for a specific entry
2 parents 4a2dc27 + fcbf829 commit c14dff8

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,21 @@ jobs:
4848
${{ runner.os }}-test-
4949
${{ runner.os }}-
5050
- uses: julia-actions/julia-buildpkg@v1
51-
- uses: julia-actions/julia-runtest@v1
51+
- name: "Run test without coverage report"
52+
uses: julia-actions/julia-runtest@v1
53+
if: ${{ !contains(fromJson('["1", "1.6"]'), matrix.version) || matrix.os != 'ubuntu-latest' }}
54+
with:
55+
coverage: false
56+
57+
- name: "Run test with coverage report"
58+
uses: julia-actions/julia-runtest@v1
59+
if: contains(fromJson('["1", "1.6"]'), matrix.version) && matrix.os == 'ubuntu-latest'
60+
- uses: julia-actions/julia-processcoverage@v1
61+
if: contains(fromJson('["1", "1.6"]'), matrix.version) && matrix.os == 'ubuntu-latest'
62+
- uses: codecov/codecov-action@v2
63+
if: contains(fromJson('["1", "1.6"]'), matrix.version) && matrix.os == 'ubuntu-latest'
64+
with:
65+
file: lcov.info
5266

5367
docs:
5468
name: Documentation

0 commit comments

Comments
 (0)