Skip to content

Commit 9877c42

Browse files
authored
Create swift.yml
1 parent 4fca907 commit 9877c42

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/swift.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Swift
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup Xcode version
17+
uses: maxim-lobanov/setup-xcode@v1
18+
with:
19+
xcode-version: "16.2"
20+
21+
- name: Build
22+
run: swift build -v
23+
24+
- name: Run tests
25+
run: swift test -v
26+
27+
lint:
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- name: SwiftLint
34+
uses: norio-nomura/[email protected]
35+
with:
36+
args: --strict

0 commit comments

Comments
 (0)