/actionswiftlint

GitHub Action for SwiftLint

Primary LanguageSwiftMIT LicenseMIT

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