Skip to content

Commit

Permalink
CI: run tests on arm64
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lmb committed Dec 1, 2023
1 parent e13d7d0 commit d8bd592
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -123,17 +127,15 @@ jobs:
go-version: '${{ env.prev_go_version }}'

- run: go install gotest.tools/[email protected]
- 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:
Expand Down

0 comments on commit d8bd592

Please sign in to comment.