This Action runs GolangCI-Lint on your Go code and adds optional annotations to the check.
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 }}