glow/.github/workflows/go.yml

34 lines
666 B
YAML
Raw Normal View History

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