Skip to content

Commit

Permalink
Enabling CodeCoverage to swift test (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppeelen authored Mar 17, 2024
1 parent dc1dfd4 commit e2d4362
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
run: swift build
- name: Run tests
run: swift test -v
run: swift test --enable-test-discovery --enable-code-coverage
- name: Prepare Code Coverage
run: xcrun llvm-cov export -format="lcov" .build/debug/TibberSwiftPackageTests.xctest/Contents/MacOS/TibberSwiftPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand Down

0 comments on commit e2d4362

Please sign in to comment.