Skip to content

Commit 71b4520

Browse files
authored
Add SwiftFormat Action (#29)
2 parents 7ac4554 + 5eb6819 commit 71b4520

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/swiftformat.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: SwiftFormat Check
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
swiftformat:
9+
name: Code Formatting Check
10+
runs-on: macos-26
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Install swiftformat
17+
run: brew install swiftformat
18+
19+
- name: Check code formatting
20+
run: swiftformat --lint .
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: SwiftLint
1+
name: SwiftLint Check
22

33
on:
44
pull_request:

0 commit comments

Comments
 (0)