-
Notifications
You must be signed in to change notification settings - Fork 6
42 lines (32 loc) · 813 Bytes
/
go-build.yml
File metadata and controls
42 lines (32 loc) · 813 Bytes
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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
strategy:
matrix:
go-version: [1.13.x, 1.14.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: off
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code onto GOPATH
uses: actions/checkout@v2
with:
fetch-depth: 1
path: ./src/github.com/${{ github.repository }}
- name: Vet
run: go vet github.com/${{ github.repository }}/...
- name: Build
run: go build -v github.com/${{ github.repository }}/...