2019-08-16 03:24:31 +02:00
|
|
|
name: Test
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
name: Linux
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Go 1.12
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: 1.12
|
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build
|
2019-08-16 03:32:45 +02:00
|
|
|
run: go build -o ./bin/task -v ./cmd/task
|
2019-08-16 03:28:55 +02:00
|
|
|
|
|
|
|
- name: Test
|
2019-08-16 03:35:29 +02:00
|
|
|
run: ./bin/task test
|
2019-08-16 03:24:31 +02:00
|
|
|
|
|
|
|
windows:
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Go 1.12
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: 1.12
|
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build
|
2019-08-16 03:32:45 +02:00
|
|
|
run: go build -o ./bin/task -v ./cmd/task
|
2019-08-16 03:28:55 +02:00
|
|
|
|
|
|
|
- name: Test
|
2019-08-16 03:35:29 +02:00
|
|
|
run: ./bin/task test
|
2019-08-16 03:24:31 +02:00
|
|
|
|
|
|
|
macos:
|
|
|
|
name: MacOS
|
|
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Go 1.12
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: 1.12
|
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Build
|
2019-08-16 03:32:45 +02:00
|
|
|
run: go build -o ./bin/task -v ./cmd/task
|
2019-08-16 03:28:55 +02:00
|
|
|
|
|
|
|
- name: Test
|
2019-08-16 03:35:29 +02:00
|
|
|
run: ./bin/task test
|