Skip to content

Commit 18d4954

Browse files
authored
Create github action
1 parent 98583dd commit 18d4954

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/swift.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Swift
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
macos:
11+
runs-on: macos-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Build
16+
run: swift build -v
17+
- name: Run tests
18+
run: swift test -v
19+
20+
linux:
21+
runs-on: ubuntu-latest
22+
container:
23+
image: swift:5.4
24+
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --security-opt apparmor=unconfined
25+
steps:
26+
- uses: actions/checkout@v2
27+
- name: Build
28+
run: swift build -v
29+
- name: Run tests
30+
run: swift test -v --enable-test-discovery

0 commit comments

Comments
 (0)