Skip to content

GolangCI-Linter

Actions
Lint your Go code with GolangCI-Lint
v1.1.2
Latest
Star (5)

DEPRECATED

We strongly recommend using the official Github Actions.

golangci-linter

This action lints your Golang Project with GolangCI-Lint simply.

Feature

  • Output lint result as error annotations of GitHub Actions.
  • No GITHUB_TOKEN required to work this Github Actions.

Demo

Demo

Inputs

config

Optional Path of the GolangCI-Lint config file. Default none.

basePath

Optional Path of the Golang project root directory. Default "."

Outputs

nothing.

Example usage

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

GolangCI-Linter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Lint your Go code with GolangCI-Lint
v1.1.2
Latest

GolangCI-Linter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.