Skip to content

Commit

Permalink
Enable coverage on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jmp committed Oct 29, 2021
1 parent 456eaa5 commit c943b93
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true
name: macOS
linux:
name: Linux
runs-on: ubuntu-latest
Expand All @@ -38,4 +38,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Run tests
run: swift test
run: swift test --enable-code-coverage
- name: Convert coverage to lcov
run: llvm-cov export -format=lcov .build/debug/*PackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > coverage.lcov
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
name: Linux

0 comments on commit c943b93

Please sign in to comment.