From 2cb15dd704add05e422dd97cec65d04e85ad34c5 Mon Sep 17 00:00:00 2001 From: Dharmit Shah Date: Thu, 8 Aug 2024 15:41:01 +0530 Subject: [PATCH] Add integration tests for arm64 Signed-off-by: Dharmit Shah --- .github/workflows/ci.yaml | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5cc01484..97ce3f70 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,12 +29,11 @@ jobs: build: strategy: matrix: - os : [ - ubuntu-latest - # org-rancher-arm64-containers - ] + arch: + - x64 + - arm64 name : CI - runs-on : ${{ matrix.os }} + runs-on : runs-on,image=ubuntu22-full-${{ matrix.arch }},runner=4cpu-linux-${{ matrix.arch }},run-id=${{ github.run_id }} outputs: k3sversions: ${{ steps.support.outputs.k3sversions }} steps: @@ -50,7 +49,7 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: bro-build-artifacts-${{ matrix.os }} + name: bro-build-artifacts-${{ matrix.arch }} path: ./dist/artifacts test: @@ -58,13 +57,12 @@ jobs: needs : [ build ] - runs-on : ${{ matrix.os }} + runs-on : runs-on,image=ubuntu22-full-${{ matrix.arch }},runner=4cpu-linux-${{ matrix.arch }},run-id=${{ github.run_id }} strategy: matrix: - os : [ - ubuntu-latest - # org-rancher-arm64-containers, - ] + arch: + - x64 + - arm64 K3S_VERSION : ${{ fromJSON(needs.build.outputs.k3sversions) }} steps: - name : Checkout repository @@ -72,7 +70,7 @@ jobs: - name : Fetch build artifacts uses: actions/download-artifact@v4 with: - name: bro-build-artifacts-${{ matrix.os }} + name: bro-build-artifacts-${{ matrix.arch }} path: ./dist/artifacts/ - name : Debug run : ls -R ./dist/artifacts @@ -80,9 +78,13 @@ jobs: uses: docker/setup-buildx-action@v3 - name : Load backup-restore-operator image run : docker image load -i ./dist/artifacts/backup-restore-operator.img - - name : Setup up K3d + - name: Install go + uses: actions/setup-go@v5 + with: + go-version: 1.22 + - name : Install k3d run : ./.github/workflows/scripts/install-k3d.sh - - name : Setup up mc + - name : Install minio client run : ./.github/workflows/scripts/install-mc.sh - name : Setup k3d cluster run : CLUSTER_NAME=backup-restore K3S_VERSION=${{ matrix.K3S_VERSION }} ./.github/workflows/scripts/setup-cluster.sh