Runs SwiftLint on a codebase.
- name: SwiftLint
uses: shapehq/actions/swiftlint@v1You may optionally run SwiftLint in strict mode as shown below. This treats warnings as errors.
- name: SwiftLint
uses: shapehq/actions/swiftlint@v1
with:
args: --strictThe motivation for using this over running the swiftlint CLI directly is that this action can be run on an Ubuntu runner.
Consider running the swiftlint CLI directly if you are using a macOS runner.
- name: SwiftLint
runs: swiftlint --quiet --strict --reporter github-actions-logging