File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- name : Func Embedded FS Test
1
+ name : Func Check Embedded FS
2
2
3
3
on : [pull_request]
4
4
5
5
jobs :
6
6
test :
7
- name : Func Embedded FS Test
7
+ name : Func Check Embedded FS
8
8
strategy :
9
9
matrix :
10
10
os : ["ubuntu-latest"]
14
14
- uses : knative/actions/setup-go@main
15
15
- name : Check embedded templates content
16
16
run : |
17
- if ! go test -run "^\QTestFileSystems\E$/^\Qembedded\E$" ./pkg/filesystem ; then
17
+ if ! make check-embedded-fs ; then
18
18
echo "Content of templates directory and embedded FS (zz_filesystem_generated.go) doesn't match!"
19
19
echo "Consult https:.github.com/knative/func/blob/main/docs/CONTRIBUTING.md#templates ."
20
20
exit 1
Original file line number Diff line number Diff line change @@ -133,6 +133,10 @@ presubmit-unit-tests: ## Run prow presubmit unit tests locally
133
133
# #@ Templates
134
134
# ############
135
135
136
+ .PHONY : check-embedded-fs
137
+ check-embedded-fs : # # Check the embedded templates FS
138
+ go test -run " ^\QTestFileSystems\E$$ /^\Qembedded\E$$ " ./pkg/filesystem
139
+
136
140
# TODO: add linters for other templates
137
141
.PHONY : check-templates
138
142
check-templates : check-go check-rust # # Run template source code checks
You can’t perform that action at this time.
0 commit comments