Debian Codegraph @

.github/workflows/test.yml

raw
1 name: Test
2
3 on:
4 push:
5 branches:
6 - '*'
7
8 jobs:
9 test:
10 name: Test
11 runs-on: ubuntu-latest
12 steps:
13 - name: Set up Go 1.x
14 uses: actions/setup-go@v2
15 with:
16 go-version: ^1.14
17
18 - name: Check out code into the Go module directory
19 uses: actions/checkout@v2
20
21 - name: Get dependencies
22 run: |
23 go get -v -t -d ./...
24 if [ -f Gopkg.toml ]; then
25 curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
26 dep ensure
27 fi
28
29 - name: Run tests
30 run: go test