| 1 | name: CI |
| 2 | |
| 3 | permissions: |
| 4 | contents: read |
| 5 | |
| 6 | on: |
| 7 | pull_request: |
| 8 | branches: [main] |
| 9 | push: |
| 10 | branches: ["**"] |
| 11 | workflow_dispatch: |
| 12 | |
| 13 | concurrency: |
| 14 | group: ci-${{ github.ref }} |
| 15 | cancel-in-progress: true |
| 16 | |
| 17 | jobs: |
| 18 | verify: |
| 19 | name: Verify |
| 20 | runs-on: ubuntu-latest |
| 21 | steps: |
| 22 | - name: Checkout code |
| 23 | uses: actions/checkout@v6 |
| 24 | |
| 25 | - name: Set up Go |
| 26 | uses: actions/setup-go@v6 |
| 27 | with: |
| 28 | go-version-file: go.mod |
| 29 | cache: true |
| 30 | |
| 31 | - name: Download dependencies |
| 32 | run: go mod download |
| 33 | |
| 34 | - name: Install CI tools |
| 35 | run: make install |
| 36 | |
| 37 | - name: Run checks |
| 38 | run: | |
| 39 | make vet |
| 40 | make lint |
| 41 | make test |
| 42 | make vuln |