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
2.2.0
This Action executes SwiftLint and generates annotations from SwiftLint Violations by using GitHub Checks API.
An example workflow to executing SwiftLint follows:
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: GitHub Action for SwiftLint
uses: norio-nomura/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- Specifying
GITHUB_TOKEN
tosecrets
is required to using Check Run APIs for generating annotations from SwiftLint Violations.
Here is an example that actually works.
Norio Nomura