Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Mushus/golangci-linter

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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