https://github.com/cirruslabs/swiftlint-action
Run SwiftLint from your GitHub Actions with ease
https://github.com/cirruslabs/swiftlint-action
github-actions github-checks swift swiftlint
Last synced: about 1 year ago
JSON representation
Run SwiftLint from your GitHub Actions with ease
- Host: GitHub
- URL: https://github.com/cirruslabs/swiftlint-action
- Owner: cirruslabs
- License: mit
- Created: 2024-05-13T14:50:34.000Z (about 2 years ago)
- Default Branch: v1
- Last Pushed: 2025-04-29T10:08:53.000Z (about 1 year ago)
- Last Synced: 2025-04-29T11:23:07.664Z (about 1 year ago)
- Topics: github-actions, github-checks, swift, swiftlint
- Language: TypeScript
- Homepage:
- Size: 3.07 MB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SwiftLint Action
Run [SwiftLint](https://github.com/realm/SwiftLint) from your GitHub Actions
with ease and annotations.

Works with GitHub-managed runners, self-hosted runners and runners from services
like [Cirrus Runners](https://cirrus-runners.app/).
## Usage
```yaml
steps:
- uses: cirruslabs/swiftlint-action@v1
with:
version: latest
```
Here is a full example of a workflow file:
```yaml
# .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
```