Extend CI workflow with gofmt

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan
2020-04-29 13:26:41 -07:00
parent 3c9c44842c
commit 7f3f0699b3
9 changed files with 17 additions and 52 deletions

View File

@@ -12,6 +12,8 @@ jobs:
uses: actions/setup-go@v1
with:
go-version: 1.14
- name: Ensure gofmt
run: test -z "$(gofmt -s -d .)"
- name: Ensure go.mod is already tidied
run: go mod tidy && git diff --no-patch --exit-code
- name: Run unit tests