| 1 | name: Staticcheck |
| 2 | on: |
| 3 | pull_request: |
| 4 | branches: [master] |
| 5 | |
| 6 | jobs: |
| 7 | ci: |
| 8 | name: lint |
| 9 | strategy: |
| 10 | matrix: |
| 11 | go: ["1.22.x"] |
| 12 | runs-on: ubuntu-latest |
| 13 | env: |
| 14 | GO111MODULE: on |
| 15 | steps: |
| 16 | - uses: actions/checkout@v4 |
| 17 | with: |
| 18 | fetch-depth: 1 |
| 19 | - uses: WillAbides/[email protected] |
| 20 | with: |
| 21 | go-version: ${{ matrix.go }} |
| 22 | - uses: dominikh/[email protected] |
| 23 | with: |
| 24 | version: "2023.1.6" |
| 25 | install-go: false |
| 26 | cache-key: ${{ matrix.go }} |