We strongly recommend using the official Github Actions.
This action lints your Golang Project with GolangCI-Lint simply.
- Output lint result as error annotations of GitHub Actions.
- No
GITHUB_TOKEN
required to work this Github Actions.
Optional Path of the GolangCI-Lint config file. Default none
.
Optional Path of the Golang project root directory. Default "."
nothing.
Same as golangci-lint run
uses: Mushus/golangci-linter@v1
Same as golangci-lint run .golangci.yml
uses: Mushus/golangci-linter@v1
with:
config: .golangci.yml
Using a prebuild image from DockerHub
uses: docker://mushus/golangci-linter:1.1.2