-
Notifications
You must be signed in to change notification settings - Fork 14
81 lines (73 loc) · 2.73 KB
/
test-e2e-runtime-watcher.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: TestSuite E2E
env:
IMAGE_REPO: europe-docker.pkg.dev/kyma-project/dev/runtime-watcher
on:
workflow_dispatch:
inputs:
k8s_version:
description: With Kubernetes version
required: false
pull_request:
types: [ opened, edited, synchronize, reopened, ready_for_review ]
jobs:
wait-for-image-build:
name: Wait for image build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Wait for the Docker image
timeout-minutes: 20
env:
ITERATIONS: 40
SLEEP_SECONDS: 30
run: ./.github/scripts/release/wait_for_image.sh ${{ env.IMAGE_REPO }}:${{ github.event.pull_request.head.sha }} ${{ env.ITERATIONS }} ${{ env.SLEEP_SECONDS}}
e2e-integration:
name: E2E
needs: wait-for-image-build
strategy:
matrix:
e2e-test:
- watcher-enqueue
- watcher-metrics
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout runtime-watcher
uses: actions/checkout@v4
- name: Checkout lifecycle-manager
uses: actions/checkout@v4
with:
repository: kyma-project/lifecycle-manager
path: lifecycle-manager
- name: Get configuration
uses: kyma-project/lifecycle-manager/.github/actions/get-configuration@main
id: configuration
- name: Setup tools
uses: kyma-project/lifecycle-manager/.github/actions/setup-tools@main
with:
k8s_version: ${{ steps.configuration.outputs.k8s_version }}
istio_version: ${{ steps.configuration.outputs.istio_version }}
k3d_version: ${{ steps.configuration.outputs.k3d_version }}
modulectl_version: ${{ steps.configuration.outputs.modulectl_version }}
go-version-file: runtime-watcher/go.mod
cache-dependency-path: runtime-watcher/go.sum
- name: Setup test clusters
uses: kyma-project/lifecycle-manager/.github/actions/setup-test-clusters@main
with:
k8s_version: ${{ steps.configuration.outputs.k8s_version }}
cert_manager_version: ${{ steps.configuration.outputs.cert_manager_version }}
additional_skr_args: "-p 9090:9090@loadbalancer;-p 2112:2112@loadbalancer"
- name: Patch lifecycle-manager
uses: ./.github/actions/patch-lifecycle-manager
- name: Deploy lifecycle-manager
uses: kyma-project/lifecycle-manager/.github/actions/deploy-lifecycle-manager@main
with:
klm_version_tag: latest
klm_image_repo: prod
- name: Run '${{ matrix.e2e-test }}' test
working-directory: runtime-watcher
run: |
make -C tests/e2e ${{ matrix.e2e-test }}