| 1 | name: Run lints |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | tags: |
| 6 | - v3.* |
| 7 | branches: |
| 8 | - main |
| 9 | pull_request: |
| 10 | branches: |
| 11 | - main |
| 12 | |
| 13 | permissions: |
| 14 | contents: read |
| 15 | |
| 16 | jobs: |
| 17 | golangci-lint: |
| 18 | runs-on: ubuntu-24.04 |
| 19 | |
| 20 | steps: |
| 21 | - name: Clone repository |
| 22 | uses: actions/checkout@v7 |
| 23 | |
| 24 | - name: Set up Go |
| 25 | uses: actions/setup-go@v6 |
| 26 | with: |
| 27 | go-version: stable |
| 28 | |
| 29 | - name: Run golangci-lint |
| 30 | uses: golangci/golangci-lint-action@v9 |
| 31 | with: |
| 32 | version: latest |