Skip to content

Commit 00492fc

Browse files
committed
Create swift.yml
1 parent 0000114 commit 00492fc

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/swift.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Swift
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: macos-latest
12+
13+
steps:
14+
- name: Get Sources
15+
uses: actions/checkout@v2
16+
17+
- name: Build Package
18+
run: swift build -v
19+
20+
- name: Test & publish code coverage to Code Climate
21+
uses: paambaati/codeclimate-action@v3.0.0
22+
env:
23+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
24+
with:
25+
coverageCommand: swift test --enable-code-coverage
26+
debug: true
27+
coverageLocations: ${{github.workspace}}/.build/debug/codecov/*.json:lcov-json
28+
29+

0 commit comments

Comments
 (0)