From 205480872b755968a7dce7dc1be5a88529056f9d Mon Sep 17 00:00:00 2001 From: yazansalti Date: Thu, 29 Aug 2024 10:41:21 +0200 Subject: [PATCH] Enable metallb --- .github/workflows/integration-test.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index 65d40fd..2bd6c7d 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -10,7 +10,7 @@ jobs: arch: - arch: amd64 runner: ubuntu-22.04 - + runs-on: ${{ matrix.arch.runner }} steps: - name: Checkout @@ -21,11 +21,11 @@ jobs: with: name: built-charm-${{ matrix.arch.arch }} path: built/ - + - name: Get Charm Under Test Path id: charm-path run: echo "charm_path=$(find built/ -name '*.charm' -type f -print)" >> $GITHUB_OUTPUT - + - name: Setup operator environment uses: charmed-kubernetes/actions-operator@main with: @@ -33,19 +33,22 @@ jobs: channel: 1.29-strict/stable juju-channel: 3.4/stable lxd-channel: 5.20/stable - + + - name: Enable Metallb + run: /usr/bin/sg snap_microk8s -c "sudo microk8s enable metallb:10.0.0.2-10.0.0.10" + - name: Run integration tests run: | tox -e integration -- \ --charm_path=${{ steps.charm-path.outputs.charm_path }} - + - name: Archive charmcraft logs if: failure() uses: actions/upload-artifact@v4 with: name: charmcraft-logs path: /home/runner/.local/state/charmcraft/log/*.log - + - name: Archive juju crashdump if: failure() uses: actions/upload-artifact@v4