SwiftLint changes to workflow #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |