Skip to content

Commit 9926455

Browse files
committed
Add "Check Code Formation" step to CI
1 parent 1b5510c commit 9926455

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,15 @@ jobs:
1717
uses: actions/checkout@v2
1818
- name: Test
1919
run: go test -v ./...
20+
21+
check:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Install Go
25+
uses: actions/setup-go@v2
26+
with:
27+
go-version: 1.16.x
28+
- name: Checkout code
29+
uses: actions/checkout@v2
30+
- name: Check Code Formation
31+
run: make fmt-check

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#
1313
# install: Builds, tests and installs the code locally
1414

15-
GO_PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
1615
GOFILES_NOVENDOR = $(shell find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./.git/*")
1716

1817
.PHONY: all fmt build vet lint test cover install

0 commit comments

Comments
 (0)