COSI-57: Use cosi-scality-runner for COSI E2E test #31
Workflow file for this run
This file contains 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: CI End-to-End Tests | |
on: | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
type: boolean | |
description: 'Run the build with tmate debugging enabled' | |
required: false | |
default: false | |
debug_delay_duration: | |
type: number | |
description: 'Duration to delay job completion in seconds' | |
required: false | |
default: 300 | |
jobs: | |
e2e-tests-with-kind: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Create k8s KIND Cluster | |
uses: helm/kind-action@v1.10.0 | |
with: | |
version: v0.21.0 | |
wait: 90s | |
cluster_name: object-storage-cluster | |
- name: Verify KIND cluster is running | |
run: | | |
kubectl cluster-info | |
kubectl get nodes | |
- name: "Debug: SSH to runner" | |
uses: scality/actions/action-ssh-to-runner@v1 | |
with: | |
tmate-server-host: ${{ secrets.TMATE_SERVER_HOST }} | |
tmate-server-port: ${{ secrets.TMATE_SERVER_PORT }} | |
tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }} | |
tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }} | |
detached: true | |
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | |
timeout-minutes: 10 | |
continue-on-error: true | |
- name: Capture Kubernetes Logs in artifacts directory | |
run: | | |
chmod +x .github/scripts/capture_k8s_logs.sh | |
.github/scripts/capture_k8s_logs.sh | |
if: always() | |
- name: "Delay completion" | |
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | |
run: sleep ${{ inputs.debug_delay_duration }} | |
- name: Upload logs and data to Scality artifacts | |
uses: scality/action-artifacts@v4 | |
with: | |
method: upload | |
url: https://artifacts.scality.net | |
user: ${{ secrets.ARTIFACTS_USER }} | |
password: ${{ secrets.ARTIFACTS_PASSWORD }} | |
source: .github/e2e_tests/artifacts | |
if: always() |