From 3d1f36b720eeb8a3d8b577c38c67d8d8489223a6 Mon Sep 17 00:00:00 2001 From: Mahesh Bandara Wijerathna Date: Tue, 25 Jan 2022 19:40:47 +0530 Subject: [PATCH] Add `arm64` and `armv7` test runners for Linux --- .github/workflows/test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 618271b0..2f173387 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,3 +58,21 @@ jobs: npm install --ignore-scripts && \ npm run build-debug && \ npm test" + + test-linux-arm: + strategy: + matrix: + arch: + - arm/v7 + - arm64 + name: Testing Node 16 on Linux (${{ matrix.arch }}) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: docker/setup-qemu-action@v1 + - run: | + docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:16 -c "\ + cd /tmp/project && \ + npm install --ignore-scripts && \ + npm run build-debug && \ + npm test"