Skip to content

Commit 7ca4cf2

Browse files
committed
Revise codecov reporting
bug/ci-fails-from-error-in-lcov-generation
1 parent 56583da commit 7ca4cf2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- name: Run Tests
3030
run: swift test --enable-code-coverage
3131
- name: Swift Coverage Report
32-
uses: maxep/spm-lcov-action@0.3.1
33-
- name: Code Coverage
34-
run: bash <(curl -s https://codecov.io/bash) -X xcodellvm
32+
run: xcrun llvm-cov export -format="lcov" .build/debug/CoreDataRepositoryPackageTests.xctest/Contents/MacOS/CoreDataRepositoryPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
33+
- uses: codecov/codecov-action@v3
34+
with:
35+
fail_ci_if_error: true # optional (default = false)

0 commit comments

Comments
 (0)