Skip to content

Commit

Permalink
Record coverage during test, upload to codecov.io (decentralized-iden…
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block authored Apr 4, 2024
1 parent 1353f59 commit b4d9a72
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,17 @@ jobs:
run: swift build

- name: Run tests
run: swift test
run: swift test --enable-code-coverage

- name: Convert the coverage data
run: llvm-cov export -format="lcov" .build/x86_64-apple-macosx/debug/Web5PackageTests.xctest/Contents/MacOS/Web5PackageTests -instr-profile .build/x86_64-apple-macosx/debug/codecov/default.profdata > info.lcov

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@c16abc29c95fcf9174b58eb7e1abf4c866893bc8 # 4.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: TBD54566975/web5-swift
files: info.lcov

- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit b4d9a72

Please sign in to comment.