Skip to content

Commit c212b55

Browse files
CI: Fix Codecov (#14)
Co-authored-by: Dilum Aluthge <[email protected]>
1 parent c4c52ee commit c212b55

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,18 @@ jobs:
6666
- uses: julia-actions/julia-buildpkg@v1
6767
- uses: julia-actions/julia-runtest@v1
6868
- uses: julia-actions/julia-processcoverage@v1
69+
- name: (debug) find all lcov.info files
70+
run: find . -type f -name 'lcov.info'
71+
if: runner.os != 'Windows'
72+
# - name: (debug) cat all lcov.info files
73+
# run: find . -type f -name 'lcov.info' -exec cat {} \;
74+
# if: runner.os != 'Windows'
6975
- uses: codecov/codecov-action@v4
7076
with:
7177
file: lcov.info
78+
# For `v4` of `codecov/codecov-action`,
79+
# if the repo is public, the following rules apply:
80+
# 1. If the PR is from a fork, then no Codecov token is required.
81+
# 2. If the PR is NOT from a fork, then the Codecov token is required.
82+
token: ${{ secrets.CODECOV_TOKEN }}
83+
fail_ci_if_error: true

0 commit comments

Comments
 (0)