You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
GitHub Action for SwiftLint
3.0.0
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@v1
- name: GitHub Action for SwiftLint
uses: norio-nomura/[email protected]
SpecifyingGITHUB_TOKEN
tosecrets
is required to using Check Run APIs for generating annotations from SwiftLint Violations.- Since 3.0.0,
GITHUB_TOKEN
is no longer needed.
Here is an example that actually works.
Norio Nomura