Skip to content

Build & Test

Build & Test #695

Workflow file for this run

name: Build & Test
'on':
push:
branches:
- "**"
pull_request:
branches:
- "**"
schedule:
- cron: 0 16 * * *
workflow_dispatch:
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.12
uses: actions/setup-go@v2
with:
go-version: 1.12.x
- name: Check out
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go build -v .
- name: Test
run: go test -v .