Skip to content

Kubevirt minimize

Kubevirt minimize #24

Workflow file for this run

# SPDX-FileCopyrightText: The RamenDR authors
# SPDX-License-Identifier: Apache-2.0
---
# yamllint disable rule:line-length
name: E2E
on: # yamllint disable-line rule:truthy
pull_request:
types: [opened, synchronize, reopened]
env:
NAME_PREFIX: "rdr-"
# Limit number of drenv workers.
MAX_WORKERS: 4
jobs:
e2e-rdr:
runs-on: [self-hosted, e2e-rdr]
if: github.repository == 'RamenDR/ramen' && github.event.pull_request.author_association == 'MEMBER'
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Install drenv
run: pip install -e test
- name: Setup drenv
working-directory: test
run: drenv setup -v
- name: Install ramenctl
run: pip install -e ramenctl
- name: Delete clusters
if: ${{ always() }}
working-directory: test
run: drenv delete --name-prefix ${{ env.NAME_PREFIX }} envs/regional-dr.yaml
- name: Setup libvirt
run: test/scripts/setup-libvirt
- name: Start clusters
uses: nick-fields/retry@v3
with:
timeout_minutes: 20
max_attempts: 3
command: |
cd test
drenv start --max-workers ${{ env.MAX_WORKERS }} --name-prefix ${{ env.NAME_PREFIX }} envs/regional-dr.yaml
- name: Build ramen-operator container
run: make docker-build
- name: Deploy ramen
run: ramenctl deploy --name-prefix ${{ env.NAME_PREFIX }} test/envs/regional-dr.yaml
- name: Configure ramen
uses: nick-fields/retry@v3
with:
timeout_seconds: 60
max_attempts: 3
command: ramenctl config --name-prefix ${{ env.NAME_PREFIX }} test/envs/regional-dr.yaml
- name: Run e2e tests
run: |
cp ~/.config/drenv/${{ env.NAME_PREFIX }}rdr/config.yaml e2e/config.yaml
make e2e-rdr
- name: Delete clusters
if: ${{ always() }}
working-directory: test
run: drenv delete --name-prefix ${{ env.NAME_PREFIX }} envs/regional-dr.yaml
- name: Cleanup drenv
if: ${{ always() }}
working-directory: test
run: drenv cleanup -v