From 72e9bccbc6a650c361b0bd639f9cf2dff66a0185 Mon Sep 17 00:00:00 2001 From: Ed Cook Date: Tue, 17 Sep 2019 17:10:14 +0100 Subject: [PATCH] Add test and lint github action workflow --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..40f882a --- /dev/null +++ b/.github/workflows/test.yml @@ -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/ginkgo@v1.10.1 + 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