-
Notifications
You must be signed in to change notification settings - Fork 29
45 lines (38 loc) · 962 Bytes
/
lint.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
39
40
41
42
43
44
45
name: Lint
on:
pull_request:
branches:
- main
push:
branches:
- main
paths:
- ".github/workflows/lint.yml"
- "**/*.swift"
workflow_dispatch:
concurrency:
group: "lint-${{ github.head_ref || github.run_id }}"
cancel-in-progress: true
jobs:
swiftLint:
name: SwiftLint
runs-on: macos-15
env:
DEVELOPER_DIR: /Applications/Xcode_16.1.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install swiftlint
run: brew install swiftlint
- name: Swiftlint
run: swiftlint --strict --reporter github-actions-logging
swiftFormat:
name: SwiftFormat
runs-on: ubuntu-latest
container:
image: docker://ghcr.io/nicklockwood/swiftformat:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: SwiftFormat
run: swiftformat --lint --reporter github-actions-log .