| 1 | name: "Lint" |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: {} |
| 7 | |
| 8 | permissions: |
| 9 | contents: read |
| 10 | |
| 11 | jobs: |
| 12 | build: |
| 13 | runs-on: ubuntu-latest |
| 14 | |
| 15 | steps: |
| 16 | - uses: actions/checkout@v6 |
| 17 | - uses: actions/setup-go@v6 |
| 18 | with: |
| 19 | go-version: "1.24.7" |
| 20 | |
| 21 | - name: golangci-lint |
| 22 | uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 |
| 23 | with: |
| 24 | version: v2.11.4 |
| 25 | args: --verbose --config .golangci.yaml |
| 26 | skip-cache: true |