This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
[delete commit] try out scality runner #13
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 | |
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/[email protected] | |
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@improvement/COSI-57-add-detached-mode-to-ssh-runner | |
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 | |
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: 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() |