-
Notifications
You must be signed in to change notification settings - Fork 178
44 lines (40 loc) · 951 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: test
on:
push:
pull_request:
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v2
with:
go-version: '^1.13.0' # Latest 1.x release >= 1.13
- uses: actions/checkout@v2
- name: Build
run: go build .
- name: Test
run: go test -v ./...
gopath:
runs-on: ubuntu-latest
env:
GOPATH: ${{ github.workspace }}
package: gopkg.in/check.v1
steps:
- uses: actions/setup-go@v2
with:
go-version: '1.9.x'
- uses: actions/checkout@v2
with:
path: src/${{ env.package }}
- name: Dependencies
run: go get -t -d -v ${{ env.package }}/...
- name: Build
run: go build ${{ env.package }}
- name: Test
run: go test -v ${{ env.package }}/...