36 lines
693 B
YAML
36 lines
693 B
YAML
---
|
|
name: Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
strategy:
|
|
matrix:
|
|
go-version:
|
|
- "1.12.x"
|
|
- "1.13.x"
|
|
- "1.14.x"
|
|
os:
|
|
- "ubuntu-latest"
|
|
- "macos-latest"
|
|
- "windows-latest"
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Setup Go ${{ matrix.go-version }}
|
|
uses: actions/setup-go@v1
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
id: go
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Build
|
|
run: |
|
|
go build -v .
|
|
- name: Test
|
|
run: |
|
|
go test -v -race .
|