Skip to content

E2E Tests (Manual)

E2E Tests (Manual) #24

Workflow file for this run

name: E2E Tests (Manual)
permissions:
contents: read
on:
workflow_dispatch:
inputs:
test_target:
description: 'Make target to run'
required: true
default: 'test-e2e-lifecycle'
type: choice
options:
- test-e2e-lifecycle
- test-e2e
- test-e2e-ha
- test-e2e-upgrade
- test-e2e-self-hosted
- test-e2e-md-remediation
- test-e2e-conformance
- test-e2e-conformance-fast
concurrency:
group: e2e-tests
cancel-in-progress: false
jobs:
test-e2e:
name: ${{ github.event.inputs.test_target }}
runs-on: ubuntu-latest
environment: e2e
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
fetch-depth: 0
persist-credentials: false
- name: Setup e2e environment
uses: ./.github/actions/e2e-setup
- name: Login to quay.io
if: >-
github.event.inputs.test_target == 'test-e2e-self-hosted' ||
github.event.inputs.test_target == 'test-e2e'
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: quay.io
username: ${{ secrets.QUAY_E2E_USERNAME }}
password: ${{ secrets.QUAY_E2E_PASSWORD }}
- name: Run e2e tests
env:
CLOUDSCALE_API_TOKEN: ${{ secrets.CLOUDSCALE_API_TOKEN }}
TAG: e2e-manual-${{ github.sha }}
TEST_TARGET: ${{ github.event.inputs.test_target }}
run: make $TEST_TARGET
- name: Clean up e2e image
if: >-
github.event.inputs.test_target == 'test-e2e-self-hosted' ||
github.event.inputs.test_target == 'test-e2e'
env:
QUAY_E2E_TOKEN: ${{ secrets.QUAY_E2E_TOKEN }}
TAG: e2e-manual-${{ github.sha }}
run: |
curl -s -X DELETE \
-H "Authorization: Bearer ${QUAY_E2E_TOKEN}" \
"https://quay.io/api/v1/repository/cloudscalech/capcs-staging/tag/${TAG}"
- name: Redact secrets from artifacts
if: always()
env:
CLOUDSCALE_API_TOKEN: ${{ secrets.CLOUDSCALE_API_TOKEN }}
run: hack/log/redact.sh || true
- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: e2e-artifacts-manual-${{ github.run_id }}
path: _artifacts/
retention-days: 14