Skip to content

Commit 408212e

Browse files
committed
formatting ci
1 parent 671fdc5 commit 408212e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/format.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Swift Format Lint
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "**.swift"
8+
pull_request:
9+
branches: [main]
10+
workflow_dispatch:
11+
12+
jobs:
13+
linux:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 15
16+
strategy:
17+
matrix:
18+
image: ["swift:6.2"]
19+
20+
container:
21+
image: ${{ matrix.image }}
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Check Format
27+
run: swift format lint -prs .

0 commit comments

Comments
 (0)