Skip to content

Commit 2700747

Browse files
authored
CI: reimplement pipeline
1 parent 1f0729e commit 2700747

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/swift.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow will build a Swift project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+
name: Swift
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: macos-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build
20+
run: swift build -Xswiftc -suppress-warnings
21+
- name: Run tests
22+
run: swift test --enable-code-coverage -Xswiftc -suppress-warnings
23+
- name: Generate coverage
24+
uses: sersoft-gmbh/swift-coverage-action@v3
25+
id: coverage-files
26+
- name: Upload coverage
27+
uses: codecov/codecov-action@v3
28+
with:
29+
files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}}

0 commit comments

Comments
 (0)