Mushus / golangci-linter

Makes linting with golangci-lint simply

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Makes linting with golangci-lint simply

License:MIT License


Languages

Language:Go 84.7%Language:Dockerfile 14.3%Language:Shell 0.9%