Skip to content

Commit

Permalink
chore: add build matrix for node and ensure that it runs on node20
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed May 29, 2024
1 parent 8d46a96 commit f3275f6
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/test-node-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- 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

0 comments on commit f3275f6

Please sign in to comment.