-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 921 Bytes
/
.ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Lint
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
swiftlint:
runs-on: ubuntu-latest
container:
image: swift:5.10-noble
steps:
- uses: actions/checkout@v2
- name: Set up swiftlint
run: |
sudo apt-get update && sudo apt-get install -y unzip curl
unzip ci/swiftlint.zip -d /usr/local/bin/
chmod +x /usr/local/bin/swiftlint
- name: Run swiftlint
run: swiftlint lint --strict .
swiftformat:
runs-on: ubuntu-latest
container:
image: swift:5.10-noble
steps:
- uses: actions/checkout@v2
- name: Set up swiftformat
run: |
sudo apt-get update && sudo apt-get install -y unzip curl
unzip ci/swiftformat.zip -d /usr/local/bin/
chmod +x /usr/local/bin/swiftformat
- name: Run swiftformat
run: swiftformat --lint .