Debian Codegraph @

.github/workflows/go.yml

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