Debian Codegraph @

.github/workflows/test.yml

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