This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |