Skip to content

fix: Upgrade from LaunchAtLogin-Legacy to LaunchAtLogin-Modern now we… #70

fix: Upgrade from LaunchAtLogin-Legacy to LaunchAtLogin-Modern now we…

fix: Upgrade from LaunchAtLogin-Legacy to LaunchAtLogin-Modern now we… #70

Workflow file for this run

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