We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f951c5f commit 9d34b57Copy full SHA for 9d34b57
1 file changed
.github/workflows/swift.yml
@@ -33,5 +33,20 @@ jobs:
33
run: swift build -v
34
35
- name: Run tests
36
- run: |
37
- swift test -v
+ run: swift test --enable-code-coverage -v
+
38
+ - name: Setup Xcode
39
+ uses: maxim-lobanov/setup-xcode@v1.4.0
40
+ with:
41
+ xcode-version: latest-stable
42
43
+ - name: Gather code coverage
44
+ run: xcrun llvm-cov export -format="lcov" .build/debug/SQLiteCloudPackageTests.xctest/Contents/MacOS/SQLiteCloudPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
45
46
+ - name: Upload coverage to Codecov
47
+ uses: codecov/codecov-action@v2
48
49
+ token: ${{ secrets.CODECOV_TOKEN }}
50
+ fail_ci_if_error: fail
51
+ files: ./coverage_report.lcov
52
+ verbose: true
0 commit comments