mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 14:14:17 +00:00
34 lines
666 B
YAML
34 lines
666 B
YAML
|
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 ./...
|