| 1 | name: golangci-lint |
| 2 | on: |
| 3 | push: |
| 4 | branches: |
| 5 | - main |
| 6 | - master |
| 7 | pull_request: |
| 8 | |
| 9 | permissions: |
| 10 | contents: read |
| 11 | pull-requests: read |
| 12 | |
| 13 | jobs: |
| 14 | golangci: |
| 15 | name: lint |
| 16 | runs-on: ubuntu-latest |
| 17 | steps: |
| 18 | - uses: actions/checkout@v6 |
| 19 | - uses: actions/setup-go@v6 |
| 20 | with: |
| 21 | go-version: '^1.25.0' |
| 22 | - name: golangci-lint |
| 23 | uses: golangci/golangci-lint-action@v8 |
| 24 | with: |
| 25 | version: v2.4.0 |