Debian Codegraph @

.github/workflows/go.yml

raw
1 name: Go
2 on: [push, pull_request]
3 jobs:
4 test:
5 strategy:
6 matrix:
7 platform: [ubuntu-latest, macos-latest, windows-latest]
8 go-version: ['1.15', '1.16']
9 runs-on: ${{ matrix.platform }}
10 steps:
11 - name: Setup Go
12 uses: actions/[email protected]
13 with:
14 go-version: ${{ matrix.go-version }}
15
16 - name: Checkout
17 uses: actions/checkout@v2
18
19 - name: Download Go dependencies
20 run: go mod download
21 env:
22 GOPROXY: "https://proxy.golang.org"
23
24 - name: Build
25 run: go build -v ./...
26
27 - name: Test
28 run: go test -v ./...