Skip to content

Commit

Permalink
Upload code coverage to codecov in action
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoAlgorithm authored Jun 9, 2022
1 parent 929b639 commit c84889a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,14 @@ jobs:
version: 13.3.1

- name: Test
run: swift test
run: swift test --enable-code-coverage

- name: Export Code Coverage
run: |
xcrun llvm-cov export -format="lcov" .build/debug/ETFKitPackageTests.xctest/Contents/MacOS/ETFKitPackageTests \
-instr-profile .build/debug/codecov/default.profdata > coverage.lcov
- name: Upload Code Coverage to Codecov
uses: codecov/codecov-action@v2
with:
files: ./coverage.lcov

0 comments on commit c84889a

Please sign in to comment.