Debian Codegraph @

.github/workflows/test.yml

raw symbols SCIP
1 name: Go tests
2 on:
3 push:
4 pull_request:
5 schedule: # daily at 09:42 UTC
6 - cron: '42 9 * * *'
7 workflow_dispatch:
8 permissions:
9 contents: read
10 jobs:
11 test:
12 strategy:
13 fail-fast: false
14 matrix:
15 go:
16 - { go-version: stable }
17 - { go-version: oldstable }
18 os:
19 - ubuntu-latest
20 - macos-latest
21 - windows-latest
22 runs-on: ${{ matrix.os }}
23 steps:
24 - uses: actions/checkout@v7
25 with:
26 persist-credentials: false
27 - uses: actions/setup-go@v7
28 with:
29 go-version: ${{ matrix.go.go-version }}
30 - run: |
31 go test -race ./...
32 test-latest:
33 runs-on: ubuntu-latest
34 strategy:
35 fail-fast: false
36 matrix:
37 go:
38 - { go-version: stable }
39 - { go-version: oldstable }
40 steps:
41 - uses: actions/checkout@v7
42 with:
43 persist-credentials: false
44 - uses: actions/setup-go@v7
45 with:
46 go-version: ${{ matrix.go.go-version }}
47 - uses: geomys/[email protected]
48 with:
49 run: |
50 go get -u -t ./...
51 go test -race ./...
52 staticcheck:
53 runs-on: ubuntu-latest
54 steps:
55 - uses: actions/checkout@v7
56 with:
57 persist-credentials: false
58 - uses: actions/setup-go@v7
59 with:
60 go-version: stable
61 - uses: geomys/[email protected]
62 with:
63 run: go run honnef.co/go/tools/cmd/staticcheck@latest ./...
64 govulncheck:
65 runs-on: ubuntu-latest
66 steps:
67 - uses: actions/checkout@v7
68 with:
69 persist-credentials: false
70 - uses: actions/setup-go@v7
71 with:
72 go-version: stable
73 - uses: geomys/[email protected]
74 with:
75 run: go run golang.org/x/vuln/cmd/govulncheck@latest ./...