From f3275f648d1c3f090686acd1be2f6c3919a1e752 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Wed, 29 May 2024 16:32:10 +0100 Subject: [PATCH] chore: add build matrix for node and ensure that it runs on node20 --- .github/workflows/test-node-bindings.yml | 29 +++++++++++++++++------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-node-bindings.yml b/.github/workflows/test-node-bindings.yml index 9f08cc65..9102c3e9 100644 --- a/.github/workflows/test-node-bindings.yml +++ b/.github/workflows/test-node-bindings.yml @@ -9,12 +9,25 @@ on: jobs: build-and-test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + steps: - - uses: actions/checkout@v4 - - name: Build - working-directory: bindings/node - run: yarn && yarn install && yarn build - - name: Run tests - working-directory: bindings/node - run: yarn test \ No newline at end of file + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Build + working-directory: bindings/node + run: yarn && yarn install && yarn build + + - name: Run tests + working-directory: bindings/node + run: yarn test