Debian Codegraph @

.github/workflows/build.yml

raw
1 name: build
2 on: [push, pull_request]
3
4 jobs:
5 build:
6 strategy:
7 matrix:
8 go-version: [~1.15, ^1]
9 os: [ubuntu-latest, macos-latest, windows-latest]
10 runs-on: ${{ matrix.os }}
11 env:
12 GO111MODULE: "on"
13 steps:
14 - name: Install Go
15 uses: actions/setup-go@v3
16 with:
17 go-version: ${{ matrix.go-version }}
18
19 - name: Checkout code
20 uses: actions/checkout@v3
21
22 - name: Download Go modules
23 run: go mod download
24
25 - name: Build
26 run: go build -v ./...
27
28 - name: Test
29 run: go test ./...