| 1 |
name: golangci-lint |
| 2 |
on: |
| 3 |
push: |
| 4 |
branches: |
| 5 |
- master |
| 6 |
- release-0.31 |
| 7 |
- release-0.32 |
| 8 |
pull_request: |
| 9 |
|
| 10 |
permissions: |
| 11 |
contents: read |
| 12 |
|
| 13 |
env: |
| 14 |
GO_VERSION: v1.26.2 |
| 15 |
GOLANGCI_LINT_VERSION: v2.9.0 |
| 16 |
|
| 17 |
jobs: |
| 18 |
golangci: |
| 19 |
name: lint |
| 20 |
runs-on: ubuntu-22.04 |
| 21 |
steps: |
| 22 |
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2 |
| 23 |
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c #v6.4.0 |
| 24 |
with: |
| 25 |
go-version: ${{ env.GO_VERSION }} |
| 26 |
- name: golangci-lint |
| 27 |
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee #v9.2.1 |
| 28 |
with: |
| 29 |
version: ${{ env.GOLANGCI_LINT_VERSION }} |
| 30 |
args: --verbose |