Skip to content

chore: copy snippet in samples #32

chore: copy snippet in samples

chore: copy snippet in samples #32

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:
- 16
- 18
- 20
steps:
- uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node }}'
- uses: actions/checkout@v4
- name: 'Cache node_modules'
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ matrix.node }}-
- name: Install Dependencies
run: npm ci
- name: Run All Node.js Tests
run: npm run test