Skip to content

Commit 0854598

Browse files
committed
Add GitHub Action for CI
1 parent a404701 commit 0854598

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/swift.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Swift
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: macos-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Build
18+
run: swift build -v
19+
20+
- name: Run tests
21+
run: swift test --enable-code-coverage
22+
23+
- name: Prepare Code Coverage
24+
run: xcrun llvm-cov export -format="lcov" .build/x86_64-apple-macosx/debug/XCombinePackageTests.xctest/Contents/MacOS/XCombinePackageTests -instr-profile .build/x86_64-apple-macosx/debug/codecov/default.profdata > info.lcov
25+
26+
- name: Upload to CodeCov.io
27+
run: bash <(curl https://codecov.io/bash)

0 commit comments

Comments
 (0)