diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index dfcdb3e4..e087c2ee 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -14,6 +14,8 @@ on: jobs: nats: runs-on: ubuntu-latest + matrix: + backend: [nats, eventmesh] steps: - uses: actions/checkout@v4 @@ -28,21 +30,9 @@ jobs: kubectl version kubectl cluster-info - - name: Deploy lifecycle-manager + - name: Get NATS run: | - make -C hack/ci/ install-lifecycle-manager - - - name: Install the latest NATS-manager module template - run: | - make -C hack/ci/ install-latest-nats-module-template-fast - - - name: Enable NATS-manager module - run: | - make -C hack/ci/ enable-nats-module - - - name: Wait for NATS to become Ready - run: | - ./hack/ci/check-k8s-resource-is-ready.sh + make -C hack/ci/ get-nats-via-lifecycle-manager - name: Install eventing-manager run: | diff --git a/hack/ci/Makefile b/hack/ci/Makefile index 6541ef29..408f458f 100644 --- a/hack/ci/Makefile +++ b/hack/ci/Makefile @@ -24,3 +24,7 @@ install-latest-nats-module-template-fast: ## Downloads and applies the latest na .PHONY: enable-nats-module enable-nats-module: "${KYMA_CLI}" alpha enable module nats -c fast -f --ci -n kyma-system + +.PHONY: get-nats-via-lifecycle-manager +get-nats-via-lifecycle-manager: install-lifecycle-manager install-latest-nats-module-template-fast enable-nats-module + ./check-k8s-resource-is-ready.sh