Skip to content

chore(deps): update node.js to v18 #40

chore(deps): update node.js to v18

chore(deps): update node.js to v18 #40

Workflow file for this run

name: Validation
on:
pull_request:
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
test:
name: Test
env:
DBURL: mongodb://localhost:27017/mgdb-migrator-db
runs-on: ubuntu-latest
services:
mongodb:
image: mongo
ports:
- 27017:27017
strategy:
fail-fast: false
matrix:
node-version: [14, 16, 18, 20, 22, lts/*, latest]
mongodb-version: ['^5', '^6']
exclude:
# mongodb v6 drops support for Node.js v14
- node-version: 14
mongodb-version: '^6'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies, including the specified MongoDB driver
run: npm install mongodb@"${{ matrix.mongodb-version }}"
- name: List installed mongodb version
run: npm list mongodb
- name: Build
run: npm run build
- name: Test
run: npm run test