GitHub Action
SwiftLint Annotations
v1.0.0
Latest version
Run SwiftLint from your GitHub Actions with ease and annotations.
Works with GitHub-managed runners, self-hosted runners and runners from services like Cirrus Runners.
steps:
- uses: cirruslabs/swiftlint-action@v1
with:
version: latest
Here is a full example of a workflow file:
# .github/workflows/swiftlint.yml
name: SwiftLint
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
SwiftLint:
runs-on: ghcr.io/cirruslabs/macos-runner:sonoma
steps:
- uses: actions/checkout@v4
- uses: cirruslabs/swiftlint-action@v1
with:
version: latest