Skip to content

Commit

Permalink
ci: add code coverage summary
Browse files Browse the repository at this point in the history
  • Loading branch information
kkebo committed Feb 4, 2024
1 parent cfe5940 commit a05d1ce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@ jobs:
${{ runner.os }}-spm-
- run: swift --version
- run: swift build
- run: swift test --disable-xctest
- run: swift test --disable-xctest --enable-code-coverage
- run: swift package lint-source-code
- run: llvm-cov export -format="lcov" .build/debug/zyphyPackageTests.swift-testing -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: fail
file: ./coverage_report.lcov

0 comments on commit a05d1ce

Please sign in to comment.