This Action executes SwiftLint and generates annotations from SwiftLint Violations by using GitHub Checks API.
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"]
}
- Specifying
GITHUB_TOKEN
tosecrets
is required to using Check Run APIs for generating annotations from SwiftLint Violations.
Here is an example that actually works.
Norio Nomura