Debian Codegraph @

.github/workflows/go.yml

raw
1 name: Go
2
3 on: [push, pull_request]
4
5 jobs:
6 build:
7 name: Build
8 strategy:
9 matrix:
10 go-version: [1.26.x, 1.25.x]
11 platform: [ubuntu-latest, macos-latest, windows-latest]
12 runs-on: ${{ matrix.platform }}
13 steps:
14 - name: Set up Go 1.x
15 uses: actions/setup-go@v6
16 with:
17 go-version: ${{ matrix.go-version }}
18 id: go
19
20 - name: Check out code into the Go module directory
21 uses: actions/checkout@v6
22 with:
23 submodules: true
24
25 - name: Get dependencies
26 run: go get -v -t -d ./...
27
28 - name: Build
29 run: go build -v .
30
31 - name: Test
32 run: go test -race -v ./...