Skip to content

Merge pull request #54 from ovh/ci-release #24

Merge pull request #54 from ovh/ci-release

Merge pull request #54 from ovh/ci-release #24

Workflow file for this run

name: NodeJS Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Restore/create node_modules cache
uses: actions/cache@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install
run: npm install
- name: Test
run: npm run test