From 12ce4de597ccae1326a33e4d9da2c3b8e66ba450 Mon Sep 17 00:00:00 2001 From: 343dev <343dev@users.noreply.github.com> Date: Fri, 25 Apr 2025 16:17:34 +0700 Subject: [PATCH] Update ci-node workflow --- .github/workflows/ci-nodejs.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.yml index f85394b..131b483 100644 --- a/.github/workflows/ci-nodejs.yml +++ b/.github/workflows/ci-nodejs.yml @@ -7,23 +7,25 @@ on: branches: [main] jobs: - run_tests: - runs-on: ubuntu-latest + tests: + runs-on: ${{ matrix.os }} strategy: matrix: - node-version: [18.18.0, 20.18.0, latest] + node-version: [18.18.0, latest] + os: [ + ubuntu-latest, # x64 + ubuntu-24.04-arm, # arm64 + macos-13, # x64 + macos-latest, # arm64 + ] steps: - - - name: Checkout repository + - name: Checkout repository uses: actions/checkout@v4 - - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - - name: Install dependencies + - name: Install dependencies run: npm ci - - - name: Run tests + - name: Run tests run: npm test