2019-11-29 00:38:02 +08:00
|
|
|
name: Go
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
2019-12-07 01:10:05 +08:00
|
|
|
test:
|
|
|
|
# name: build
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
# go: [1.12.x, 1.13.x]
|
|
|
|
os: [macOS-latest, windows-latest] # ubuntu-latest
|
|
|
|
runs-on: ${{ matrix.os }}
|
2019-11-29 00:38:02 +08:00
|
|
|
|
|
|
|
steps:
|
2019-12-07 01:10:05 +08:00
|
|
|
- name: Set up Go 1.13
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
|
|
|
go-version: 1.13
|
|
|
|
id: go
|
2019-11-29 00:38:02 +08:00
|
|
|
|
2019-12-07 01:10:05 +08:00
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v1
|
2019-11-29 00:38:02 +08:00
|
|
|
|
2019-12-07 01:10:05 +08:00
|
|
|
- name: Get dependencies
|
|
|
|
run: |
|
|
|
|
go get -v -t -d ./...
|
|
|
|
# if [ -f Gopkg.toml ]; then
|
|
|
|
# curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
|
|
|
# dep ensure
|
|
|
|
# fi
|
2019-11-29 00:38:02 +08:00
|
|
|
|
2019-12-07 01:10:05 +08:00
|
|
|
- name: Build
|
|
|
|
run: go build -v .
|
|
|
|
# - name: Test
|
|
|
|
# run: go test -v .
|