An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# SwiftLint Action

Run [SwiftLint](https://github.com/realm/SwiftLint) from your GitHub Actions
with ease and annotations.

SwiftLintDemoPR

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
```