Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
add lcov generation
  • Loading branch information
adam-fowler authored Oct 24, 2023
1 parent ecddf77 commit 894e8fd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ jobs:
uses: actions/checkout@v3
- name: SPM tests
run: swift test --enable-code-coverage
- name: Convert coverage files
run: |
xcrun llvm-cov export -format "lcov" \
.build/debug/hummingbirdPackageTests.xctest/Contents/MacOs/hummingbirdPackageTests \
-ignore-filename-regex="\/Tests\/" \
-ignore-filename-regex="\/Benchmarks\/" \
-instr-profile=.build/debug/codecov/default.profdata > info.lcov
- name: Upload to codecov.io
uses: codecov/codecov-action@v3
with:
file: info.lcov
linux:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 894e8fd

Please sign in to comment.