Skip to content

Commit

Permalink
Add test and lint github action workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardecook committed Sep 17, 2019
1 parent a53159c commit 72e9bcc
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Test and Lint
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
id: go
- name: Check out code
uses: actions/checkout@v1
- name: Unit tests
run: |
export PATH=$PATH:$(go env GOPATH)/bin # temporary fix. See https://github.com/actions/setup-go/issues/14
go get github.com/onsi/ginkgo/[email protected]
go mod download
make unit-test
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Lint
uses: actions-contrib/golangci-lint@master
with:
args: run

0 comments on commit 72e9bcc

Please sign in to comment.