alvarhansen / actionswiftlint

GitHub Action for SwiftLint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

GitHub Action for SwiftLint

License:MIT License


Languages

Language:Swift 95.4%Language:Dockerfile 4.6%