Skip to content

Commit 8479404

Browse files
committed
Added Build action with Code coverage
1 parent 4fa01f9 commit 8479404

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/swift.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ master, develop ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: macos-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Build
15+
run: swift build -v
16+
- name: Run tests
17+
run: |
18+
swift test --enable-code-coverage -v
19+
xcrun llvm-cov export -format="lcov" .build/debug/swift-doc-coveragePackageTests.xctest/contents/macos/swift-doc-coveragePackageTests -instr-profile .build/debug/codecov/default.profdata -ignore-filename-regex='_CSwiftSyntax|SwiftDocCoverageTests|ArgumentParser|SwiftSyntaxParser|SwiftSyntax|ArgumentParserToolInfo' > info.lcov
20+
bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)