Skip to content

[serverless-1.34] fix: allow sub-pkgs in Go functions #979

[serverless-1.34] fix: allow sub-pkgs in Go functions

[serverless-1.34] fix: allow sub-pkgs in Go functions #979

name: Func Embedded FS Test
on: [pull_request]
jobs:
test:
name: Func Embedded FS Test
strategy:
matrix:
os: ["ubuntu-latest"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/composite/go-setup
- name: Check embedded templates content
run: |
if ! go test -run "^\QTestFileSystems\E$/^\Qembedded\E$" ./pkg/filesystem; then
echo "Content of templates directory and embedded FS (zz_filesystem_generated.go) doesn't match!"
echo "Consult https:.git.luolix.top/knative/func/blob/main/docs/CONTRIBUTING.md#templates ."
exit 1
fi