Skip to content

Use Node 18, 20, 22 and 23 (#45) #53

Use Node 18, 20, 22 and 23 (#45)

Use Node 18, 20, 22 and 23 (#45) #53

Workflow file for this run

name: Run tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 23.x]
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB
uses: supercharge/[email protected]
- name: Install dependencies
run: npm install
- name: Standard check
run: npm run standard-check
- name: Run the application
run: node app.js
- name: Run tests
run: npm test
env:
CI: true