Merge pull request #6 from 0xWDG/swiftlint-fixes #40
This file contains 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: Build & Lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: macos-12 | |
timeout-minutes: 10 # If a build exceeds 10 mins, it probably isn't ever going to complete | |
steps: | |
- uses: actions/checkout@v2 | |
- name: MacOS Version | |
run: sw_vers | |
- name: Toolchain version | |
run: swift -version | |
- name: SwiftLint (version) | |
run: swiftlint version | |
- name: SwiftLint (GH Actions) | |
run: swiftlint --reporter github-actions-logging --strict |