Debian Codegraph @

.github/workflows/go.yml

raw symbols SCIP
1 name: Tests and linters
2 on:
3 push:
4 branches:
5 - master
6 pull_request:
7
8 permissions:
9 contents: read
10
11 jobs:
12 test:
13 runs-on: ubuntu-latest
14 steps:
15 - name: Checkout code
16 uses: actions/[email protected]
17 - name: Install Go
18 uses: actions/[email protected]
19 with:
20 go-version: 'stable'
21 - name: Run linters
22 uses: golangci/golangci-lint-action@v9
23 with:
24 version: "latest"
25 - name: Run tests
26 run: go test -race -shuffle=on ./...
27 # Run the quick tests many times to try and find flakyness.
28 - name: Run tests -count=1000
29 run: go test -count=1000 -shuffle=on -short ./...
30 # Testing on 32 bit architecture to find overflow problems as found in #731.
31 - name: Run tests on 32 bit architecture
32 run: GOARCH=386 go test -count=1 -shuffle=on ./...