diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 06be6e3..8224e34 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,3 +17,15 @@ jobs: uses: actions/checkout@v2 - name: Test run: go test -v ./... + + check: + runs-on: ubuntu-latest + steps: + - name: Install Go + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + - name: Checkout code + uses: actions/checkout@v2 + - name: Check Code Formation + run: make fmt-check diff --git a/Makefile b/Makefile index a82664d..dcd042a 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,6 @@ # # install: Builds, tests and installs the code locally -GO_PACKAGES ?= $(shell go list ./... | grep -v /vendor/) GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./.git/*") .PHONY: all fmt build vet lint test cover install