Only run gofmt over go files under pkg/ in CI

Signed-off-by: Kevin Klues <kklues@nvidia.com>
This commit is contained in:
Kevin Klues 2020-07-24 12:49:33 +00:00
parent 647a805341
commit e4b9318de3

View File

@ -52,7 +52,7 @@ fmt:
<<: *tests-setup
stage: tests
script:
- res=$(gofmt -l *.go)
- res=$(gofmt -l pkg/*.go)
- echo "$res"
- test -z "$res"