mastotool/.github/workflows/build.yml

30 lines
604 B
YAML
Raw Normal View History

2020-08-23 07:00:42 +02:00
name: build
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
2020-10-04 03:50:44 +02:00
go-version: [1.13.x, 1.14.x, 1.15.x]
2020-08-23 07:00:42 +02:00
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
GO111MODULE: "on"
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
2020-10-04 03:50:44 +02:00
uses: actions/checkout@v2
2020-08-23 07:00:42 +02:00
- name: Download Go modules
run: go mod download
- name: Build
run: go build -v ./...
- name: Test
run: go test ./...