From 3bcbd7dd3d226ae44b0191474d2c988a5f1f619e Mon Sep 17 00:00:00 2001 From: Alexandre Lamarre Date: Thu, 11 Apr 2024 12:49:32 -0400 Subject: [PATCH] e2e test Signed-off-by: Alexandre Lamarre --- .github/workflows/e2e-test.yaml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/e2e-test.yaml b/.github/workflows/e2e-test.yaml index 450429a9..c77b54e7 100644 --- a/.github/workflows/e2e-test.yaml +++ b/.github/workflows/e2e-test.yaml @@ -26,23 +26,27 @@ jobs: steps: - name : Checkout repository uses : actions/checkout@v4 - # - name : Setup environment variables - # run : echo "K8S_VERSION_FROM_CI=${{ matrix.K8S_VERSION_FROM_CI }}" >> $GITHUB_ENV - # - name: Set up Docker Buildx - # uses: docker/setup-buildx-action@v3 - # - name : CI - # run : make ci + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 - name : Install K3D run : ./.github/workflows/e2e/scripts/install-k3d.sh + - name : Install minio client + run : | + curl https://dl.min.io/client/mc/release/linux-amd64/mc > mc + mv mc /usr/local/bin/ + - name : Setup environment variables + run : echo "K8S_VERSION_FROM_CI=${{ matrix.K8S_VERSION_FROM_CI }}" >> $GITHUB_ENV + - name : CI + run : make ci - name : Setup Cluster run : ./.github/workflows/e2e/scripts/setup-cluster.sh - name : Cluster info run: | kubectl cluster-info --context k3d-${{ env.CLUSTER_NAME }} - - name: Nodes - run: | - docker ps -a kubectl config use-context k3d-${{ env.CLUSTER_NAME }} kubectl get nodes -o wide - - name: Network - run: docker network inspect k3d-${{ env.CLUSTER_NAME }} + - name : Import BRO images + run : k3d image import ${{ env.REPO }}/rancher/backup-restore-operator:${{ env.TAG}} + - name : e2e test + run : ./scripts/integration +