Debian Codegraph @

.github/workflows/go.yml

raw
1 name: Go
2 on: [push, pull_request]
3 jobs:
4
5 build:
6 name: Build
7 runs-on: ${{ matrix.os }}
8 timeout-minutes: 3
9 strategy:
10 matrix:
11 go-version: [1.16rc1]
12 os: [ubuntu-latest, windows-latest]
13
14 steps:
15 - name: Set up Go
16 uses: actions/setup-go@v1
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@v1
23
24 - name: Test
25 run: go test -v ./... --timeout 60s
26
27 - name: Cross test for i386
28 run: env GOOS=linux GOARCH=386 go test -v ./... --timeout 60s
29 if: ${{ runner.os == 'Linux' }}