forked from othyn/macos-auto-clicker
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.25 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
name: Lint
on:
push:
branches: [main, dev]
paths:
- ".github/workflows/swiftlint.yml"
- ".swiftlint.yml"
- "auto-clicker/**/*.swift"
pull_request:
branches: [main, 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
uses: actions/checkout@v1
# - name: SwiftLint
# uses: norio-nomura/action-swiftlint@3.2.1
# 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/action-swiftlint@3.2.1
with:
args: --strict