Debian Codegraph @

.github/workflows/ci.yml

raw
1 on: [push, pull_request]
2 name: Test
3 jobs:
4 test:
5 env:
6 GOPATH: ${{ github.workspace }}
7 GO111MODULE: off
8
9 defaults:
10 run:
11 working-directory: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
12
13 strategy:
14 matrix:
15 go-version: [1.14.x, 1.15.x, 1.16.x]
16 os: [ubuntu-latest, macos-latest, windows-latest]
17
18 runs-on: ${{ matrix.os }}
19
20 steps:
21 - name: Install Go
22 uses: actions/setup-go@v2
23 with:
24 go-version: ${{ matrix.go-version }}
25 - name: Checkout code
26 uses: actions/checkout@v2
27 with:
28 path: ${{ env.GOPATH }}/src/github.com/${{ github.repository }}
29 - name: Test
30 run: |
31 go get -d -t ./...
32 go test -v ./...