Skip to content

Commit 05817c3

Browse files
committed
Add linting action
Signed-off-by: Henrik Panhans <[email protected]>
1 parent 4067bb7 commit 05817c3

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.github/workflows/linting.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: macos-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Install swift-format
19+
run: brew install swift-format
20+
- name: Lint code
21+
run: Scripts/lint-swift-code

.github/workflows/swift.yml renamed to .github/workflows/tests.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
name: Swift
1+
name: Tests
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
410

511
jobs:
612
build:
7-
runs-on: macos-14
13+
runs-on: macos-latest
814

915
steps:
1016
- name: Checkout repository
1117
uses: actions/checkout@v4
1218
- name: Configure Xcode version
1319
uses: maxim-lobanov/setup-xcode@v1
1420
with:
15-
xcode-version: "15.2"
21+
xcode-version: "16.0"
1622
- name: Build
1723
run: swift build -v
1824
- name: Run tests

0 commit comments

Comments
 (0)