Skip to content

Commit

Permalink
add base CI setup for actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Sep 22, 2020
1 parent 4a8bc0c commit 0a719ff
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on: [push, pull_request]
name: Test
env:
GOPROXY: "https://proxy.golang.org"
jobs:
test:
strategy:
matrix:
go-version: [1.14.x, 1.15.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Format
run: gofmt -d .
- name: Lint
if: matrix.os != 'windows-latest'
run: |
go get -v -u golang.org/x/lint/golint
$(go env GOPATH)/bin/golint -set_exit_status .
- name: Vet
run: go vet $(go list ./... | grep -v /vendor/)
- name: Test
run: go test -v -race ./...

0 comments on commit 0a719ff

Please sign in to comment.