Skip to content

Commit

Permalink
add GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Sep 6, 2020
1 parent e6fd68f commit b211986
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test
on:
pull_request:
push:
branches:
- master
tags:
- v*
jobs:
test:
strategy:
matrix:
go-version:
- 1.14.x
- 1.15.x
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Cache Go modules
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: go build ./...
- name: Test
run: go test ./...

0 comments on commit b211986

Please sign in to comment.