GitHub Actions for SwiftLint
ActionsTags
(2)This Action executes SwiftLint and generates annotations from SwiftLint Violations.
An example workflow(.github/workflows/swiftlint.yml
) to executing SwiftLint follows:
name: SwiftLint
on:
pull_request:
paths:
- '.github/workflows/swiftlint.yml'
- '.swiftlint.yml'
- '**/*.swift'
jobs:
SwiftLint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: GitHub Actions for SwiftLint
uses: sinoru/actions-swiftlint@v5
- name: GitHub Actions for SwiftLint with --strict
uses: sinoru/actions-swiftlint@v5
with:
args: --strict
- name: GitHub Actions for SwiftLint (Only files changed in the PR)
uses: sinoru/actions-swiftlint@v5
env:
DIFF_BASE: ${{ github.base_ref }}
- name: GitHub Actions for SwiftLint (Different working directory)
uses: sinoru/actions-swiftlint@v5
env:
WORKING_DIRECTORY: Source
GitHub Actions for SwiftLint is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.