Skip to content

Commit 6d44cf2

Browse files
authored
Create build+test.yml
Added a build + test GitHub action for platforms macOS and ubuntu linux
1 parent e9377d9 commit 6d44cf2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/build+test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build & Test (macos & linux)
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-macos:
11+
12+
runs-on: macos-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Build
17+
run: swift build -v
18+
- name: Run tests
19+
run: swift test -v
20+
21+
build-linux:
22+
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- uses: actions/checkout@v3
27+
- uses: swift-actions/setup-swift@v1
28+
- name: Build
29+
run: swift build -v
30+
- name: Run tests
31+
run: swift test -c release -Xswiftc -enable-testing

0 commit comments

Comments
 (0)