Skip to content

5.4.23

5.4.23 #35

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Node.js
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
node:
- 22
- 20
- 18
- 16
- 14
steps:
# -----------------------------------------------------------------------
- name: Clone default branch
uses: actions/checkout@v2
with:
persist-credentials: false
# -----------------------------------------------------------------------
- name: Set Node.js version
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
# -----------------------------------------------------------------------
- name: Cache node_modules
id: cache-modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ matrix.os }}-${{ matrix.node }}-${{ hashFiles('package.json') }}
# -----------------------------------------------------------------------
- name: Install deps
if: steps.cache-modules.outputs.cache-hit != 'true'
run: |
npm install
# -----------------------------------------------------------------------
- name: Run Tests
run: |
npm test
# -----------------------------------------------------------------------