This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
69 lines (66 loc) · 2.27 KB
/
app-connector-e2e-gardener-gcp.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
name: Gardener - GCP
on:
workflow_dispatch:
inputs:
repository:
description: 'Repository'
required: true
default: 'kyma-project/kyma'
branch:
description: 'Branch'
required: true
default: 'main'
shoot:
description: 'Shoot cluster name'
required: true
default: 'ci'
skip:
description: 'Skip modules'
required: false
default: 'monitoring,tracing,kiali,logging,console,cluster-users,dex'
keep:
description: 'Keep cluster alive'
required: true
default: true
schedule:
- cron: '0 * * * *' # every hour
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
- name: Create cluster, install helm
timeout-minutes: 10
env:
GARDEN_KUBECONFIG: ${{ secrets.GARDEN_KUBECONFIG }}
SHOOT_NAME: ${{ github.event.inputs.shoot }}
run: |
./create-cluster-gardener.sh
while [[ $(kubectl get nodes -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "Waiting for cluster nodes to be ready"; sleep 2; done
- name: Install and test Kyma
timeout-minutes: 20
run: |
SKIP=${{ github.event.inputs.skip }}
export SKIP_MODULES=${SKIP:-$SKIP_MODULES}
./download-kyma-charts.sh ${{ github.event.inputs.repository }} ${{ github.event.inputs.branch }}
cd tests/fast-integration
npm install
export DEBUG=true
./kyma.js install --new-eventing
npm run-script test-commerce-mock
- name: Uninstall Kyma
if: ${{ always() }}
run: |
KEEP=${{ github.event.inputs.keep }}
if [[ $KEEP == "true" ]]; then
echo "Keeping cluster alive"
exit 0
fi
echo "Deleting cluster ..."
./uninstall-kyma.sh
export SHOOT_NAME=$(kubectl get cm shoot-info -n kube-system -ojsonpath='{.data.shootName}')
kubectl --kubeconfig ./garden-kubeconfig.yaml annotate shoot $SHOOT_NAME confirmation.gardener.cloud/deletion=true
kubectl --kubeconfig ./garden-kubeconfig.yaml delete shoot $SHOOT_NAME --force=true --wait=false