Skip to content

deps(dependabot): bump github.com/onsi/gomega from 1.35.1 to 1.36.0 #257

deps(dependabot): bump github.com/onsi/gomega from 1.35.1 to 1.36.0

deps(dependabot): bump github.com/onsi/gomega from 1.35.1 to 1.36.0 #257

Workflow file for this run

name: E2E Test
on:
pull_request:
branches:
- main
- "release-*"
paths-ignore:
- "docs/**"
- "**.md"
- "sec-scanners-config.yaml"
env:
EPP_IMAGE: europe-docker.pkg.dev/kyma-project/dev/eventing-publisher-proxy:PR-${{ github.event.number }}
jobs:
e2e-nats:
runs-on: ubuntu-latest
steps:
- name: Checkout EPP repository
uses: actions/checkout@v4
with:
path: main
- name: Checkout EM repository
uses: actions/checkout@v4
with:
repository: kyma-project/eventing-manager
path: eventing-manager
- name: Setup Go via go.mod
uses: actions/setup-go@v5
with:
go-version-file: main/go.mod
- run: go version
- name: Install k3d tools
run: |
make -C eventing-manager/hack/ci/ install-k3d-tools
- name: Install Kyma CLI & setup k3d cluster using Kyma CLI
run: |
make -C eventing-manager kyma
make -C main/hack/ci/ create-k3d
kubectl version
kubectl cluster-info
- name: Create Namespace
run: |
kubectl create ns kyma-system
- name: Deploy NATS Manager
run: |
kubectl apply -f https://github.com/kyma-project/nats-manager/releases/latest/download/nats-manager.yaml
kubectl apply -f https://github.com/kyma-project/nats-manager/releases/latest/download/nats-default-cr.yaml
echo "Using NATS Manager image:"
kubectl get -n kyma-system deployment nats-manager -o=jsonpath='{$.spec.template.spec.containers[:1].image}'
- name: Deploy Eventing Manager
run: |
kubectl apply -f https://github.com/kyma-project/eventing-manager/releases/latest/download/eventing-manager.yaml
kubectl apply -f https://raw.githubusercontent.com/kyma-project/eventing-manager/main/config/samples/default_nats.yaml
echo "Using Eventing Manager image:"
kubectl get -n kyma-system deployment eventing-manager -o=jsonpath='{$.spec.template.spec.containers[:1].image}'
- name: Wait for build job - Checkout eventing-tools
uses: actions/checkout@v4
with:
repository: 'kyma-project/eventing-tools'
path: 'kyma-project/eventing-tools'
ref: main
sparse-checkout: 'scripts/wait-for-commit-check'
- name: Wait for build job - Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
- name: Wait for build job - Install requirements
run: |
pip install -r $GITHUB_WORKSPACE/kyma-project/eventing-tools/scripts/wait-for-commit-check/requirements.txt
- name: Wait for build job
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY_FULL_NAME: ${{ github.repository_owner }}/eventing-publisher-proxy
GIT_REF: "${{ github.event.pull_request.head.sha }}" # Note: 'github.event.pull_request.head.sha' is not same as 'github.sha' on pull requests.
# The re-usable image-builder workflow from neighbors appends the "Build image" suffix to the check run name.
GIT_CHECK_RUN_NAME: "build / Build image"
INTERVAL: 60
TIMEOUT: 900
run: |
python $GITHUB_WORKSPACE/kyma-project/eventing-tools/scripts/wait-for-commit-check/run.py
- name: Setup Eventing Manager with new EPP image
run: |
kubectl get deployment eventing-manager -n kyma-system -o=json |
jq --arg new_image "$EPP_IMAGE" \
'.spec.template.spec.containers[0].env |= map(if .name == "PUBLISHER_IMAGE" then .value = $new_image else . end)' |
kubectl apply -f -
kubectl rollout status deployment/eventing-manager -n kyma-system --timeout=120s
echo "Waiting for 60 seconds to give the eventing-manager time to provision EPP"
sleep 60
kubectl rollout status deployment/eventing-publisher-proxy -n kyma-system --timeout=120s
- name: Check if EPP image successfully applied
run: |
DEPLOYMENT_IMAGE=$(kubectl get deployment -n kyma-system eventing-publisher-proxy -o=jsonpath='{$.spec.template.spec.containers[:1].image}')
if [ "$DEPLOYMENT_IMAGE" != "$EPP_IMAGE" ]; then
echo "EPP images do not match."
echo "Desired EPP image: $EPP_IMAGE. Image in EPP deployment: $DEPLOYMENT_IMAGE"
echo "Updating Eventing Manager with new image failed."
exit 1
else
echo "EPP image update successful."
fi
- name: Setup subscriptions for testing
run: |
make -C eventing-manager e2e-eventing-setup
- name: Test Eventing
run: |
make -C eventing-manager e2e-eventing
- name: Cleanup test resources
run: |
make -C eventing-manager e2e-cleanup
- name: On error get NATS CR
if: failure()
run: |
kubectl get nats -n kyma-system -o yaml
- name: On error get Eventing CR
if: failure()
run: |
kubectl get eventing -n kyma-system -o yaml