Skip to content

Workflow file for this run

# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [14, 16, 18]
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
<<<<<<< HEAD

Check failure on line 19 in .github/workflows/node.js.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/node.js.yml

Invalid workflow file

You have an error in your yaml syntax on line 19
- run: npm --version
=======
<<<<<<< HEAD
- run: npm --version
=======
- name: npm 7
run: npm i -g npm@7
>>>>>>> upstream/fix-ci
>>>>>>> 364de37ca2f0a20a802c02caf4798e3f78487f31
- run: npm ci --ignore-scripts
- run: npm test
# Node 14 comes with npm 6 which has issues on Windows
# Skipping tests on Windows with Node 14
build-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [16, 18]
os: [windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm --version
- run: npm ci --ignore-scripts
- run: npm test