Skip to content

SwiftLint changes to workflow #5

SwiftLint changes to workflow

SwiftLint changes to workflow #5

Workflow file for this run

name: SwiftLint
# Run SwiftLint (--strict) on every push to main and on pull requests.
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: swiftlint-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: SwiftLint
runs-on: macos-26
steps:
- uses: actions/checkout@v4
- name: Install SwiftLint
run: brew install swiftlint
- name: Lint
# Run from the directory that holds the root .swiftlint.yml WITHOUT
# passing --config. An explicit --config disables nested-configuration
# discovery, which would ignore the per-folder overrides in
# QRCodeGenTests/.swiftlint.yml and QRCodeGenUITests/.swiftlint.yml.
working-directory: QRCodeGen
run: swiftlint lint --strict