test: do test embedded template (#2050)

Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
Matej Vasek 2023-10-26 18:59:09 +02:00 committed by GitHub
parent 1d94c1afb7
commit b1b329e639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,12 @@ function install_rust() {
function unit_tests() {
local failed=0
header "Checking embedded templates"
go test knative.dev/func/pkg/filesystem -run '^\QTestFileSystems\E$/^\Qembedded\E$' -v || failed=1
if (( failed )); then
results_banner "Embedded templates check failed"
exit "${failed}"
fi
header "Unit tests for $(go_mod_module_name)"
make test || failed=1
if (( failed )); then