Update test workflow

This commit is contained in:
Mahesh Bandara Wijerathna
2026-07-24 17:38:30 +05:30
parent 89ace88fc6
commit e556f7e109
+8 -26
View File
@@ -17,6 +17,7 @@ jobs:
matrix:
os:
- ubuntu-22.04
- ubuntu-24.04-arm
- macos-15
- macos-15-intel
- windows-2022
@@ -27,26 +28,26 @@ jobs:
name: Testing Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
- if: ${{ startsWith(matrix.os, 'windows') }}
run: pip.exe install setuptools
- if: ${{ startsWith(matrix.os, 'macos') }}
run: brew install python-setuptools
- if: ${{ !startsWith(matrix.os, 'windows') && !startsWith(matrix.os, 'macos') }}
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: python3 -m pip install setuptools
- if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.node < 25 }}
run: |
sudo apt update
sudo apt install gcc-10 g++-10 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
- if: ${{ startsWith(matrix.os, 'ubuntu') && matrix.node >= 25 }}
run: |
sudo apt update
sudo apt install gcc-11 g++-11 -y
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11
- run: npm install --ignore-scripts
- run: npm run build-debug
- run: npm test
@@ -62,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
container: node:22-alpine
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- run: apk add build-base git python3 py3-setuptools --update-cache
- run: npm install --ignore-scripts
- run: npm run build-debug
@@ -72,7 +73,7 @@ jobs:
name: Testing Node 22 on Alpine-Linux (arm64)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: docker/setup-qemu-action@v4
- run: |
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/arm64 node:22-alpine -c "\
@@ -81,22 +82,3 @@ jobs:
npm install --ignore-scripts && \
npm run build-debug && \
npm test"
test-linux-arm:
strategy:
fail-fast: false
matrix:
arch:
- arm/v7
- arm64
name: Testing Node 22 on Linux (${{ matrix.arch }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: docker/setup-qemu-action@v4
- run: |
docker run --rm -v $(pwd):/tmp/project --entrypoint /bin/sh --platform linux/${{ matrix.arch }} node:22 -c "\
cd /tmp/project && \
npm install --ignore-scripts && \
npm run build-debug && \
npm test"