Debian Codegraph @

.github/workflows/test.yml

raw
1 name: Test
2
3 on:
4 push:
5 branches:
6 - "*"
7 pull_request:
8 branches:
9 - "*"
10
11 jobs:
12 test:
13 strategy:
14 matrix:
15 platform: [ ubuntu-latest, windows-latest ]
16 runs-on: ${{ matrix.platform }}
17 steps:
18 # v6.0.2 (https://github.com/actions/checkout/releases/tag/v6.0.2)
19 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
20
21 - name: Set up Go
22 # v6.3.0 (https://github.com/actions/setup-go/releases/tag/v6.3.0)
23 uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417
24 with:
25 go-version: "1.25"
26
27 - name: Build
28 run: go build ./...
29
30 - name: Set up gotestsum
31 # https://github.com/gotestyourself/gotestsum/releases
32 run: |
33 go install gotest.tools/[email protected]
34
35 - name: Test
36 run: |
37 gotestsum --raw-command -- go test -json ./... --race
38
39 # - name: Validate Config
40 # run: go generate ./... && git diff --exit-code