.github/workflows: check formatting

Check gofmt formatting as part of GitHub actions tests.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
This commit is contained in:
Tobias Klauser
2021-09-06 10:41:45 -04:00
committed by Matt Layher
parent 5cc0d2929a
commit 0893ea0215
+4
View File
@@ -35,5 +35,9 @@ jobs:
go mod tidy go mod tidy
git diff --exit-code git diff --exit-code
- name: Check formatting
if: matrix.go-version == '1.17'
run: diff -u <(echo -n) <(gofmt -d .)
- name: Run unit tests - name: Run unit tests
run: go test -v ./... run: go test -v ./...