2020-03-03 13:19:04 +03:00
|
|
|
name: Go
|
2020-08-08 08:10:41 +03:00
|
|
|
on: [push, pull_request]
|
2020-03-03 13:19:04 +03:00
|
|
|
|
2020-08-06 20:58:47 +03:00
|
|
|
|
|
|
|
jobs:
|
2020-03-03 13:19:04 +03:00
|
|
|
build:
|
2020-08-06 20:58:47 +03:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
2020-03-03 13:19:04 +03:00
|
|
|
steps:
|
2020-08-06 20:58:47 +03:00
|
|
|
- name: Set up Go 1.14
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: 1.14
|
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Get dependencies
|
|
|
|
run: |
|
|
|
|
go get -v -t -d ./...
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: go build -v .
|
|
|
|
|
2020-08-08 08:10:41 +03:00
|
|
|
- name: Test
|
|
|
|
run: go test -v ./cli/output/...
|
2020-03-03 13:19:04 +03:00
|
|
|
|
2020-08-06 20:58:47 +03:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# build-macos:
|
|
|
|
# name: Build macOS
|
|
|
|
# runs-on: macos-latest
|
|
|
|
#
|
|
|
|
# steps:
|
|
|
|
# - name: Set up Go 1.14
|
|
|
|
# uses: actions/setup-go@v1
|
|
|
|
# with:
|
|
|
|
# go-version: 1.14
|
|
|
|
# id: go
|
|
|
|
#
|
|
|
|
# - name: Check out code into the Go module directory
|
|
|
|
# uses: actions/checkout@v2
|
|
|
|
#
|
|
|
|
# - name: Get dependencies
|
|
|
|
# run: |
|
|
|
|
# go get -v -t -d ./...
|
|
|
|
#
|
|
|
|
# - name: Build
|
|
|
|
# run: go build -v .
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# build-linux:
|
|
|
|
# name: Build Linux
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
#
|
|
|
|
# steps:
|
|
|
|
# - name: Set up Go 1.14
|
|
|
|
# uses: actions/setup-go@v1
|
|
|
|
# with:
|
|
|
|
# go-version: 1.14
|
|
|
|
# id: go
|
|
|
|
#
|
|
|
|
# - name: Check out code into the Go module directory
|
|
|
|
# uses: actions/checkout@v2
|
|
|
|
#
|
|
|
|
# - name: Get dependencies
|
|
|
|
# run: |
|
|
|
|
# go get -v -t -d ./...
|
|
|
|
#
|
|
|
|
# - name: Build
|
|
|
|
# run: go build -v .
|
|
|
|
#
|
|
|
|
# build-windows:
|
|
|
|
# name: Build Windows
|
|
|
|
# runs-on: windows-latest
|
|
|
|
#
|
|
|
|
# steps:
|
|
|
|
# - name: Set up Go 1.14
|
|
|
|
# uses: actions/setup-go@v1
|
|
|
|
# with:
|
|
|
|
# go-version: 1.14
|
|
|
|
# id: go
|
|
|
|
#
|
|
|
|
# - name: Check out code into the Go module directory
|
|
|
|
# uses: actions/checkout@v2
|
|
|
|
#
|
|
|
|
# - name: Get dependencies
|
|
|
|
# run: |
|
|
|
|
# go get -v -t -d ./...
|
|
|
|
#
|
|
|
|
# - name: Build
|
|
|
|
# run: go build -v .
|
|
|
|
#
|