Mushus / golangci-lint-action

Lint your project with GolangCI-Lint using GitHub actions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Go 79.3%Language:Dockerfile 14.8%Language:Shell 5.9%