glow/.github/workflows/build.yml

29 lines
589 B
YAML
Raw Normal View History

name: build
2019-12-31 11:15:57 +00:00
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [~1.13, ^1]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
GO111MODULE: "on"
2019-12-31 11:15:57 +00:00
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
2019-12-31 11:15:57 +00:00
- name: Download Go modules
run: go mod download
2019-12-31 11:15:57 +00:00
- name: Build
run: go build -v ./...
2019-12-31 11:15:57 +00:00
- name: Test
run: go test ./...