[serverless-1.31] patch func deploy task for serverless 1.31.0 #552
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Func Embedded FS Test | |
on: [pull_request] | |
jobs: | |
test: | |
name: Func Embedded FS Test | |
strategy: | |
matrix: | |
go: [1.20.2] | |
os: ["ubuntu-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- 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://github.com/knative/func/blob/main/docs/CONTRIBUTING.md#templates ." | |
exit 1 | |
fi |