Skip to content

Commit 573a850

Browse files
author
Mengqi Yu
committed
enable tests for all examples
1 parent 125760b commit 573a850

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hack/check-everything.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ setup_envs
7373
${hack_dir}/verify.sh
7474
${hack_dir}/test-all.sh
7575

76-
header_text "confirming example compiles (via go install)"
77-
go install ./example
76+
header_text "confirming examples compile (via go install)"
77+
go install ./examples/builtins
78+
go install ./examples/crd
7879

7980
echo "passed"
8081
exit 0

hack/verify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ gometalinter.v2 --disable-all \
5050
--enable=dupl \
5151
--skip=atomic \
5252
--enable=goimports \
53-
./pkg/... ./example/... .
53+
./pkg/... ./examples/... .
5454
# TODO: Enable these as we fix them to make them pass
5555
# --enable=gosec \
5656
# --enable=maligned \

0 commit comments

Comments
 (0)