Debian Codegraph @

.github/workflows/test.yml

raw symbols SCIP
1 on:
2 push:
3 branches: [ master ]
4 pull_request:
5 name: Test
6 jobs:
7 test:
8 strategy:
9 matrix:
10 go-version: [1.25.x, 1.26.x]
11 platform: [ubuntu-latest, macos-latest, windows-latest]
12 runs-on: ${{ matrix.platform }}
13 steps:
14 - name: Checkout code
15 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
16 - name: Install Go
17 uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
18 with:
19 go-version: ${{ matrix.go-version }}
20 - name: Install staticcheck
21 run: go install honnef.co/go/tools/cmd/staticcheck@latest
22 shell: bash
23 - name: Update PATH
24 run: echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
25 shell: bash
26 - name: Fmt
27 if: matrix.platform != 'windows-latest' # :(
28 run: "diff <(gofmt -d .) <(printf '')"
29 shell: bash
30 - name: Vet
31 run: go vet ./...
32 - name: Staticcheck
33 run: staticcheck ./...
34 - name: Test
35 run: go test -race ./...