Skip to content

End-to-End test

End-to-End test #344

Workflow file for this run

name: End-to-End test
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
e2e:
runs-on: arc-runner-set
name: "End-to-End test"
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: install Dependencies
run: sudo apt-get update && sudo apt-get install -y apache2 git curl make jq openssh-client
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ">=1.21.0"
- name: Setup Gardener kubeconfig
run: |
echo "${{ secrets.GARDENER_KUBECONFIG }}" > hack/ci/secrets/gardener-kubeconfig.yaml
- name: Setup environment
env:
AZURE_DNS_CLIENT_ID: ${{ secrets.AZURE_DNS_CLIENT_ID }}
AZURE_DNS_CLIENT_SECRET: ${{ secrets.AZURE_DNS_CLIENT_SECRET }}
AZURE_DNS_SUBSCRIPTION_ID: ${{ secrets.AZURE_DNS_SUBSCRIPTION_ID }}
AZURE_DNS_TENANT_ID: ${{ secrets.AZURE_DNS_TENANT_ID }}
HCLOUD_TOKEN: ${{ secrets.HCLOUD_TOKEN }}
run: |
bash hack/ci/00-environment.sh
- name: Create shoot serving as seed
run: |
bash hack/ci/01-shoot-for-seed.sh
- name: Prepare and start Gardener
uses: nick-fields/retry@v3
env:
CI: false
with:
timeout_minutes: 30
max_attempts: 3
command: |
bash hack/ci/02-prepare-gardener.sh
- name: Create a test shoot
run: |
bash hack/ci/03-test-shoot.sh
- name: Delete the test shoot
if: ${{ always() }}
run: |
bash hack/ci/04-delete-test-shoot.sh
- name: Tear down Gardener
if: ${{ always() }}
run: |
bash hack/ci/05-tear-down-gardener.sh
- name: Delete the shoot used as seed
if: ${{ always() }}
run: |
bash hack/ci/06-delete-shoot-for-seed.sh