Skip to content

Merge pull request #1097 from mcalthrop/patch-1 #1748

Merge pull request #1097 from mcalthrop/patch-1

Merge pull request #1097 from mcalthrop/patch-1 #1748

name: Build, test, test all examples
on:
push:
pull_request:
branches: [master, 9.x.x]
workflow_dispatch:
env:
GIT_COMMIT: ${{ github.sha }}
GIT_REF: ${{ github.ref }}
ENABLE_FEATURE_V4: true
LOG_LEVEL: info
jobs:
build-and-test-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: scripts/ci/build-and-test.sh
env:
NODE_VERSION: ${{ matrix.node-version }}
build-and-test-windows:
runs-on: windows-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Fix node-gyp
run: |-
npm install --global node-gyp@latest
npm prefix -g | % {npm config set node_gyp "$_\node_modules\node-gyp\bin\node-gyp.js"}
shell: pwsh
- run: bash scripts/ci/build-and-test.sh
shell: bash
env:
NODE_VERSION: ${{ matrix.node-version }}
# Failures not reproducible locally on an M1 Mac
# build-and-test-macos:
# runs-on: macos-latest
# strategy:
# matrix:
# node-version: [14.x, 16.x, 18.x]
# fail-fast: false
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
# - run: scripts/ci/build-and-test.sh
# env:
# NODE_VERSION: ${{ matrix.node-version }}