From d8bd592e9a65512ffb52a2eebdb2f7c79969387f Mon Sep 17 00:00:00 2001 From: Lorenz Bauer Date: Fri, 1 Dec 2023 11:58:10 +0000 Subject: [PATCH] CI: run tests on arm64 Use the actuated runners provided by the CNCF to run the testsuite on arm64. These runners do not support nested KVM and therefore we can run the VM tests there. Signed-off-by: Lorenz Bauer --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00b76e420..e5fab0906 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,7 +111,11 @@ jobs: test-on-prev-go: name: Run tests on previous stable Go - runs-on: ubuntu-latest-4cores-16gb + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ ubuntu-latest-4cores-16gb, actuated-arm64-2cpu-8gb ] needs: build-and-lint timeout-minutes: 10 steps: @@ -123,17 +127,15 @@ jobs: go-version: '${{ env.prev_go_version }}' - run: go install gotest.tools/gotestsum@v1.8.1 - - run: sudo pip3 install https://github.com/amluto/virtme/archive/beb85146cd91de37ae455eccb6ab67c393e6e290.zip - - run: sudo apt-get update && sudo apt-get install -y --no-install-recommends qemu-system-x86 - name: Test - run: gotestsum --raw-command --ignore-non-json-output-lines --junitfile junit.xml -- ./run-tests.sh $CI_MAX_KERNEL_VERSION -short -count 1 -json ./... + run: gotestsum --ignore-non-json-output-lines --junitfile junit.xml -- -short -count 1 -json ./... - name: Upload Test Results if: always() uses: actions/upload-artifact@v3 with: - name: Test Results (previous stable Go) + name: Test Results (previous stable Go, ${{ matrix.os }}) path: junit.xml vm-test: