Skip to content

Commit

Permalink
Add "Check Code Formation" step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jul 9, 2021
1 parent 93a90db commit 868cfe7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -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
1 change: 0 additions & 1 deletion Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 868cfe7

Please sign in to comment.