Skip to content

update workflow test #26

update workflow test

update workflow test #26

Workflow file for this run

name: Tests
'on':
push:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
test:
name: 'Node.js v${{ matrix.node }}'
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 12
- 14
- 16
- 20
- 22
- 'lts/*'
steps:
- uses: actions/setup-node@v1
with:
node-version: '${{ matrix.node }}'
- uses: actions/checkout@v2
- name: 'Cache node_modules'
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ matrix.node }}-
- name: Install Dependencies
run: npm install
- name: Run All Tests
run: npm run test