-
-
Notifications
You must be signed in to change notification settings - Fork 31
46 lines (40 loc) · 1.31 KB
/
swiftlint.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
46
name: Lint
on:
push:
branches:
- main
- staging
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- 'auto-clicker/**/*.swift'
pull_request:
branches:
- dev
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- 'auto-clicker/**/*.swift'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Ensure project code standards are adhered to
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
# - name: SwiftLint
# uses: norio-nomura/[email protected]
# Okay this (strict mode) does work and I do prefer it, as it will fail the run if the code is not validating
# ~all~ rules, even warnings. I prefer this behaviour, as its more obvious something is wrong. In order to
# see what is wrong, under the PR go to the 'Files changed' tab, then scroll right to the bottom in which there
# is a sub-heading 'Unchanged files with check annotations (Beta)' in which I really wish these annotations were
# placed onto the main PR page.
- name: SwiftLint (Strict)
uses: norio-nomura/[email protected]
with:
args: --strict