-
Notifications
You must be signed in to change notification settings - Fork 47
35 lines (32 loc) · 970 Bytes
/
test.yml
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
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Run Go Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
- uses: actions/checkout@v2
with:
path: ./src/github.com/${{ github.repository }}
- uses: actions/checkout@v2
with:
repository: c-sto/ntds_reference
path: ./src/github.com/${{ github.repository }}/test/ntds_reference
- name: Vet on windows
run: cd ./src/github.com/${{ github.repository }} ; GOOS=windows go vet
- name: Vet on darwin
run: cd ./src/github.com/${{ github.repository }} ; GOOS=darwin go vet
- name: Vet on linux
run: cd ./src/github.com/${{ github.repository }} ; GOOS=linux go vet
- name: Run tests
run: cd ./src/github.com/${{ github.repository }} ; go test ./...