Skip to content

Commit 3822366

Browse files
committed
Update GitHub CI
1 parent e2cd064 commit 3822366

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎.github/workflows/swift.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ jobs:
1919
- name: Test
2020
run: swift test -c ${{ matrix.config }}
2121

22+
coverage:
23+
name: Code Coverage
24+
runs-on: macos-26
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
- name: Swift Version
29+
run: swift --version
30+
- name: Export coverage and enforce threshold
31+
run: Scripts/coverage.sh
32+
- name: Upload coverage report
33+
if: always()
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: code-coverage
37+
path: .build/coverage/coverage.lcov
38+
if-no-files-found: error
39+
2240
linux:
2341
name: Linux (${{ matrix.container }})
2442
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)