We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d9eab1 commit 466310fCopy full SHA for 466310f
Makefile
@@ -0,0 +1,13 @@
1
+default: test
2
+
3
+.PHONY: test
4
+test:
5
+ go test `go list ./... | grep -v test`
6
7
+.PHONY: gomod_tidy
8
+gomod_tidy:
9
+ go mod tidy
10
11
+.PHONY: gofmt
12
+gofmt:
13
+ go fmt -x ./...
scripts/openshiftci-presubmit-unittests.sh
@@ -10,7 +10,8 @@ export CUSTOM_HOMEDIR=$ARTIFACTS_DIR
export PATH=$PATH:$GOPATH/bin
go env
-if [[ $(go fmt `go list ./...`) ]]; then
+go mod vendor
14
+if [[ $(go fmt `go list ./... | grep -v vendor`) ]]; then
15
echo "not well formatted sources are found"
16
exit 1
17
fi
@@ -22,4 +23,4 @@ then
22
23
24
25
# Unit tests to be referenced here
-echo "Please reference the unit test script(s) here"
26
+make test
0 commit comments