Skip to content

E2E Tests

E2E Tests #1

Workflow file for this run

name: E2E Tests
on:
workflow_dispatch:
inputs:
helm_chart_version:
description: "Helm chart version"
required: false
default: "0.0.0-latest-dev"
permissions:
contents: read
concurrency:
group: e2e-${{ github.ref }}
cancel-in-progress: true
env:
HELM_CHART_VERSION: ${{ github.event.inputs.helm_chart_version || '0.0.0-latest-dev' }}
K3D_VERSION: v5.8.3
K3D_SHA256: dbaa79a76ace7f4ca230a1ff41dc7d8a5036a8ad0309e9c54f9bf3836dbe853e
YQ_VERSION: v4.45.4
YQ_SHA256: b96de04645707e14a12f52c37e6266832e03c29e95b9b139cddcae7314466e69
jobs:
e2e:
name: E2E
runs-on: ubuntu-24.04
timeout-minutes: 45
steps:
- name: Clone the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go
uses: ./.github/actions/setup-go
- name: Install k3d
run: |
curl -fsSL -o /tmp/k3d https://github.com/k3d-io/k3d/releases/download/${{ env.K3D_VERSION }}/k3d-linux-amd64
echo "${{ env.K3D_SHA256 }} /tmp/k3d" | sha256sum -c -
sudo install /tmp/k3d /usr/local/bin/k3d
k3d version
- name: Install yq
run: |
curl -fsSL -o /tmp/yq https://github.com/mikefarah/yq/releases/download/${{ env.YQ_VERSION }}/yq_linux_amd64
echo "${{ env.YQ_SHA256 }} /tmp/yq" | sha256sum -c -
sudo install /tmp/yq /usr/local/bin/yq
- name: Install platform
run: |
cd deployments/quick-start && VERSION=${{ env.HELM_CHART_VERSION }} bash install.sh
- name: Run e2e tests
run: make e2e-test
- name: Collect diagnostics
if: failure()
run: make e2e-diagnostics
- name: Upload diagnostics
if: failure()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: e2e-diagnostics
path: test/e2e/_diagnostics/
retention-days: 7