Improve github actions CI

This commit is contained in:
John 2022-05-05 18:44:50 -05:00
parent 57b0d6b97e
commit 75d9762f41

View File

@ -10,15 +10,22 @@ jobs:
build: build:
strategy: strategy:
matrix: matrix:
os: [macos-11, ubuntu-latest, windows-latest] os:
- macos-11
- ubuntu-latest
- windows-latest
node_version:
- 16
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3
- name: Install Node.js - name: Install Node.js
uses: actions/setup-node@v1 uses: actions/setup-node@v3
with: with:
node-version: 10.x node-version: ${{ matrix.node_version }}
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: npm ci - run: npm ci
- run: xvfb-run -a npm test - run: xvfb-run -a npm test
if: runner.os == 'Linux' if: runner.os == 'Linux'