Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
Report test coverage to codecov.io
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-block committed Apr 1, 2024
1 parent 973c754 commit 0da0853
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,4 +23,14 @@ 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

0 comments on commit 0da0853

Please sign in to comment.