Skip to content

ci: change to run devDependencies only node-lts #390

ci: change to run devDependencies only node-lts

ci: change to run devDependencies only node-lts #390

Workflow file for this run

name: build
on:
push:
branches:
- main
- dev*
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['16', '18', '20']
steps:
- uses: actions/checkout@v4
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install
run: yarn install
- name: Build and test
run: yarn node-gyp rebuild && yarn jest
build-win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup node lts
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install
run: yarn install
- name: Build and test
run: yarn node-gyp rebuild && yarn jest
build-mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup node lts
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install
run: yarn install
- name: Build and test
run: yarn node-gyp rebuild && yarn jest