Debian Codegraph @

.github/workflows/go.yml

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