Skip to content

Commit b4d9a72

Browse files
authored
Record coverage during test, upload to codecov.io (decentralized-identity#43)
1 parent 1353f59 commit b4d9a72

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,17 @@ jobs:
2323
run: swift build
2424

2525
- name: Run tests
26-
run: swift test
26+
run: swift test --enable-code-coverage
27+
28+
- name: Convert the coverage data
29+
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
30+
31+
- name: Upload coverage reports to Codecov
32+
uses: codecov/codecov-action@c16abc29c95fcf9174b58eb7e1abf4c866893bc8 # 4.1.1
33+
with:
34+
token: ${{ secrets.CODECOV_TOKEN }}
35+
slug: TBD54566975/web5-swift
36+
files: info.lcov
2737

2838
- uses: actions/upload-artifact@v3
2939
with:

0 commit comments

Comments
 (0)