From 478c56e1d609f95d5de64893f46394a53982ca81 Mon Sep 17 00:00:00 2001 From: Max Rantil Date: Wed, 8 Nov 2023 16:52:31 +0000 Subject: [PATCH] Add CI-independent BMO e2e tests Implement lightweight fixture-based tests to ensure CI platform flexibility. --- .github/workflows/e2e-fixture-test.yml | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/e2e-fixture-test.yml diff --git a/.github/workflows/e2e-fixture-test.yml b/.github/workflows/e2e-fixture-test.yml new file mode 100644 index 0000000000..451cc8cf30 --- /dev/null +++ b/.github/workflows/e2e-fixture-test.yml @@ -0,0 +1,31 @@ +name: E2E Fixture Test + +on: + pull_request: + branches: [ main ] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install Virtualization Tools + run: | + sudo apt-get update + sudo apt-get install -y virt-manager qemu-efi + + - name: Configure User Permissions and Restart Services + run: | + sudo usermod -aG libvirt $USER + sudo usermod -aG docker $USER + sudo sg libvirt "echo libvirt group set" + sudo sg docker "echo docker group set" + sudo systemctl restart libvirtd + + - name: Set Up Environment and Run BMO e2e Tests + run: | + export E2E_CONF_FILE=${GITHUB_WORKSPACE}/test/e2e/config/fixture.yaml + export USE_EXISTING_CLUSTER="false" + make test-e2e