mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-21 07:34:18 +02:00
Add go workflow (#119)
This commit is contained in:
parent
4690c265ce
commit
3262d45d82
1 changed files with 33 additions and 0 deletions
33
.github/workflows/go.yml
vendored
Normal file
33
.github/workflows/go.yml
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
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 ./...
|
||||
Loading…
Add table
Add a link
Reference in a new issue