Skip to content

norio-nomura/action-swiftlint

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

GitHub Action for SwiftLint

This Action executes SwiftLint and generates annotations from SwiftLint Violations by using GitHub Checks API.

Usage

An example workflow to executing SwiftLint follows:

workflow "Execute SwiftLint" {
  on = "push"
  resolves = ["swiftlint"]
}

action "swiftlint" {
  uses = "norio-nomura/action-swiftlint@master"
  secrets = ["GITHUB_TOKEN"]
}

Secrets

  • Specifying GITHUB_TOKEN to secrets is required to using Check Run APIs for generating annotations from SwiftLint Violations.

Example

Here is an example that actually works. screenshot

Author

Norio Nomura

License

MIT