Skip to content

Lint your project with GolangCI-Lint using GitHub actions.

License

Notifications You must be signed in to change notification settings

Mushus/golangci-lint-action

 
 

Repository files navigation

Dependabot status

GolangCI-Lint Action

This Action runs GolangCI-Lint on your Go code and adds optional annotations to the check.

Usage

Checkout

- name: Check out code into the Go module directory
  uses: actions/checkout@v1.1.0

Use by building from repository

- name: Run GolangCI-Lint Action by building from repository
  uses: matoous/golangci-lint-action@v1.1.0

Use by pulling pre-built image (faster execution time, less secure)

- name: Run GolangCI-Lint Action by pulling pre-built image
  uses: docker://matoous/golangci-lint-action:v1.1.0

Configuration

  with:
    # Path to your GolangCI-Lint config within the repo (optional)
    config: .golangci.yml
  env:
    # GitHub token for annotations (optional)
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

About

Lint your project with GolangCI-Lint using GitHub actions.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 79.3%
  • Dockerfile 14.8%
  • Shell 5.9%