-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (37 loc) · 1.03 KB
/
swiftformat.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
name: SwiftFormat
on:
pull_request:
types: [opened, synchronize, edited, ready_for_review]
merge_group:
types: [checks_requested]
# This is what will cancel the workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
SwiftFormat:
runs-on: ubuntu-latest
if: >
github.event.action != 'edited' || (
github.event.changes.title == null &&
github.event.changes.body == null &&
github.event.changes.assignees == null &&
github.event.changes.reviewers == null &&
github.event.changes.labels == null
)
container:
image: ghcr.io/nicklockwood/swiftformat:0.54.5
steps:
- uses: actions/checkout@v4
- name: GitHub Action for SwiftFormat
run: >
swiftformat --lint
./WirePlugins
./WireAPI
./WireAnalytics
./WireDomain
./WireFoundation
./WireUI
./scripts
--reporter github-actions-log
--config .swiftformat