mirror of
https://github.com/go-task/task.git
synced 2024-12-14 10:52:43 +02:00
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
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
|
|
run: go build -o ./bin/task -v ./cmd/task
|
|
|
|
- name: Test
|
|
run: ./bin/task test
|
|
|
|
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
|
|
run: go build -o ./bin/task -v ./cmd/task
|
|
|
|
- name: Test
|
|
run: bin/task test
|
|
|
|
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
|
|
run: go build -o ./bin/task -v ./cmd/task
|
|
|
|
- name: Test
|
|
run: ./bin/task test
|