| 1 |
name: golangci-lint |
| 2 |
on: |
| 3 |
push: |
| 4 |
tags: |
| 5 |
- v* |
| 6 |
branches: |
| 7 |
- master |
| 8 |
- main |
| 9 |
- dev |
| 10 |
pull_request: |
| 11 |
# This guards against unknown PR until a community member vet it and label it. |
| 12 |
types: [ labeled ] |
| 13 |
|
| 14 |
jobs: |
| 15 |
golangci: |
| 16 |
name: lint |
| 17 |
runs-on: ubuntu-latest |
| 18 |
steps: |
| 19 |
- uses: actions/setup-go@v3 |
| 20 |
with: |
| 21 |
go-version: "1.20" |
| 22 |
- uses: actions/checkout@v3 |
| 23 |
- name: golangci-lint |
| 24 |
uses: golangci/golangci-lint-action@v3 |
| 25 |
with: |
| 26 |
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. |
| 27 |
version: v1.51 |
| 28 |
|
| 29 |
# Optional: golangci-lint command line arguments. |
| 30 |
# args: --issues-exit-code=0 |