Skip to content

[serverless-1.31] patch func deploy task for serverless 1.31.1 #596

[serverless-1.31] patch func deploy task for serverless 1.31.1

[serverless-1.31] patch func deploy task for serverless 1.31.1 #596

name: Func E2E OnCluster RT Test
on: [pull_request]
jobs:
test:
name: On Cluster RT Test
strategy:
matrix:
go: [1.20.2]
os: ["ubuntu-latest"]
func_builder: ["pack", "s2i"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- uses: imjasonh/[email protected]
- name: Install Binaries
run: ./hack/binaries.sh
- name: Setup testing func image
run: ./hack/create-testing-func-image.sh
- name: Allocate Cluster
run: ./hack/allocate.sh
- name: Install RH pull secrets for KinD cluster
env:
RH_REG_USR: ${{ secrets.RH_REG_USR }}
RH_REG_PWD: ${{ secrets.RH_REG_PWD }}
run: ./hack/install-pull-secrets.sh
- name: Deploy Tekton
run: ./hack/tekton.sh
- name: Deploy Test Git Server
run: ./test/gitserver.sh
- name: E2E On Cluster Test (Runtimes)
env:
TEST_TAGS: runtime
FUNC_REPO_REF: ${{ github.event.pull_request.head.repo.full_name }}
FUNC_REPO_BRANCH_REF: ${{ github.head_ref }}
FUNC_BUILDER: ${{ matrix.func_builder }}
run: make test-e2e-on-cluster
- name: Dump Cluster Logs
if: failure()
run: |
echo "::group::cluster events"
kubectl get events -A
echo "::endgroup::"
echo "::group::cluster containers logs"
stern '.*' --all-namespaces --no-follow
echo "::endgroup::"
- uses: codecov/codecov-action@v3
with:
files: ./coverage.txt
flags: e2e-test-oncluster-runtime