Skip to content

Commit d6d7172

Browse files
committed
ci: add coverage verification and verbose upload
- Add step to verify cobertura.xml exists before upload - Set fail_ci_if_error: true to fail CI if upload fails - Enable verbose logging for Codecov upload - This helps debug why coverage is not updating on Codecov
1 parent af99942 commit d6d7172

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,16 @@ jobs:
4545
run: cargo install cargo-tarpaulin
4646
- name: Run tests with coverage
4747
run: cargo tarpaulin --all-targets --out Xml --output-dir cobertura --timeout 900 --engine LLVM
48+
- name: Verify coverage file exists
49+
run: |
50+
ls -la ./cobertura/
51+
test -f ./cobertura/cobertura.xml && echo "Coverage file found" || (echo "Coverage file NOT found!" && exit 1)
4852
- name: Upload coverage to Codecov
4953
uses: codecov/codecov-action@v4
5054
with:
5155
files: ./cobertura/cobertura.xml
52-
fail_ci_if_error: false
56+
fail_ci_if_error: true
57+
verbose: true
5358
token: ${{ secrets.CODECOV_TOKEN }}
5459

5560
# Build and package only on release tags

0 commit comments

Comments
 (0)