Debian Codegraph @

.github/workflows/go.yml

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