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/action-swiftlint@2.1.0
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