Skip to content

feat(): add nest mongoose v9 as peer dep #34

feat(): add nest mongoose v9 as peer dep

feat(): add nest mongoose v9 as peer dep #34

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x, 18.x, 20.x ]
nest-version: [ ^8.0.0, ^10.0.0 ]
name: Node ${{ matrix.node-version }} - Nest ${{ matrix.nest-version }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install peer dependencies
run: npm i @nestjs/common@${{ matrix.nest-version }} @nestjs/core@${{ matrix.nest-version }} @nestjs/testing@${{ matrix.nest-version }}
- name: Install mongoose
run: npm i --force @nestjs/[email protected] mongoose@8
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Test
run: npm run test