Skip to content

Commit cada159

Browse files
Update swift.yml
1 parent a486285 commit cada159

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/swift.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@ jobs:
1616
- name: Build
1717
run: swift build -v
1818
- name: Run tests
19-
run: swift test -v
19+
run: swift test -v --enable-code-coverage
20+
- name: Export coverage report as Lcov
21+
run: xcrun llvm-cov export -format="lcov" -instr-profile=.build/x86_64-apple-macosx/debug/codecov/default.profdata .build/x86_64-apple-macosx/debug/ShitLibPackageTests.xctest/Contents/MacOS/ShitLibPackageTests > lcov.info
22+
- uses: codecov/codecov-action@v2
23+
with:
24+
files: lcov.info

0 commit comments

Comments
 (0)