test: add integration tests running against STACKIT DNS API #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: E2E Integration Tests | |
| on: | |
| pull_request: | |
| branches: ["main", "release/**"] | |
| schedule: | |
| - cron: '0 2 * * *' # Runs daily at 2:00 AM UTC | |
| jobs: | |
| e2e-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Go | |
| uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Install Helm | |
| uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1 | |
| - name: Install Dependencies (Kind, Kuttl, Dig) | |
| run: | | |
| # Install dig for DNS assertions | |
| sudo apt-get update && sudo apt-get install -y dnsutils | |
| # Install the latest Kind (v0.32.0) | |
| curl -sSLo ./kind https://kind.sigs.k8s.io/dl/v0.32.0/kind-linux-amd64 | |
| chmod +x ./kind | |
| sudo mv ./kind /usr/local/bin/kind | |
| # Install the latest Kuttl (v0.26.0) | |
| curl -sSLo kubectl-kuttl https://github.com/kudobuilder/kuttl/releases/download/v0.26.0/kubectl-kuttl_0.26.0_linux_x86_64 | |
| chmod +x kubectl-kuttl | |
| sudo mv kubectl-kuttl /usr/local/bin/ | |
| - name: Prepare STACKIT Service Account Key | |
| run: | | |
| echo '${{ secrets.STACKIT_SERVICE_ACCOUNT_KEY }}' > /tmp/sa.json | |
| - name: Run E2E Tests | |
| env: | |
| PROJECT_ID: ${{ secrets.STACKIT_PROJECT_ID }} | |
| ZONE_NAME: ${{ secrets.STACKIT_ZONE_NAME }} | |
| AUTH_KEY_PATH: /tmp/sa.json | |
| run: | | |
| make test-e2e-local |