-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (35 loc) · 1010 Bytes
/
build.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
36
37
38
39
40
41
42
43
44
45
46
47
# Trigger when commits are pushed to the master branch
on:
push:
branches:
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- '!master' # excludes master
jobs:
hubapp-build:
name: Workflow
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout go
uses: actions/setup-go@v2
with:
go-version: '1.12' # The Go version to download (if necessary) and use.
- name: Go version
id: Version
run: go version
- name: Go ls
run: ls
- name: Go path
run: echo $GOPATH
- name: Go download
run: go mod download
- name: Go test
run: go test -v ./...
continue-on-error: false
- name: Go build
run: mkdir -p build && go build -v -o build/hubapp && build/hubapp --help