mirror of
https://github.com/rwinkhart/peercred-mini.git
synced 2026-08-28 04:46:43 -04:00
.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:
committed by
Matt Layher
parent
5cc0d2929a
commit
0893ea0215
@@ -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 ./...
|
||||||
|
|||||||
Reference in New Issue
Block a user