2019-11-20 01:43:22 +01:00
|
|
|
name: Go
|
|
|
|
on: [push]
|
2019-11-20 01:51:16 +01:00
|
|
|
env:
|
|
|
|
GOPROXY: "https://goproxy.io"
|
2019-11-20 01:43:22 +01:00
|
|
|
jobs:
|
2019-08-14 10:13:36 +02:00
|
|
|
|
2019-11-20 01:43:22 +01:00
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2019-08-14 10:13:36 +02:00
|
|
|
|
2019-11-20 01:51:16 +01:00
|
|
|
- uses: actions/cache@v1
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
path: ~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-go-
|
|
|
|
|
2019-11-20 01:43:22 +01:00
|
|
|
- name: Set up Go 1.13
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: 1.13
|
|
|
|
id: go
|
2019-08-14 10:13:36 +02:00
|
|
|
|
2019-11-20 01:43:22 +01:00
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@master
|
2019-08-14 10:13:36 +02:00
|
|
|
|
2019-11-20 01:43:22 +01:00
|
|
|
# - name: Get dependencies
|
|
|
|
# run: |
|
|
|
|
# go get -v -t -d ./...
|
|
|
|
- name: Build
|
|
|
|
run: go build -v .
|