2019-09-06 06:08:29 +02:00
|
|
|
name: Go
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
2019-09-09 03:31:06 +02:00
|
|
|
build-112:
|
2019-09-09 03:30:21 +02:00
|
|
|
name: Build with Go 1.12
|
2019-09-06 06:08:29 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2019-09-09 03:30:21 +02:00
|
|
|
- name: Set up Go 1.12
|
2019-09-06 06:08:29 +02:00
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
2019-09-09 03:30:21 +02:00
|
|
|
go-version: 1.12
|
2019-09-06 06:08:29 +02:00
|
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Test
|
2019-09-06 06:15:21 +02:00
|
|
|
run: go test -mod vendor ./...
|
2019-09-06 06:08:29 +02:00
|
|
|
- name: Build
|
|
|
|
run: go build -mod vendor
|
2019-09-09 03:30:21 +02:00
|
|
|
|
2019-09-09 03:31:06 +02:00
|
|
|
build-113:
|
2019-09-09 03:30:21 +02:00
|
|
|
name: Build with Go 1.13
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Go 1.13
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: 1.13
|
|
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
- name: Test
|
|
|
|
run: go test -mod vendor ./...
|
|
|
|
- name: Build
|
|
|
|
run: go build -mod vendor
|