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 <<: *tests-setup
stage: tests stage: tests
script: script:
- res=$(gofmt -l *.go) - res=$(gofmt -l pkg/*.go)
- echo "$res" - echo "$res"
- test -z "$res" - test -z "$res"