Skip to content

feat(): set peer dependencies #21

feat(): set peer dependencies

feat(): set peer dependencies #21

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://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
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 ]
mongoose-version: [ ^6.0.0, ^8.0.0 ]
name: Node ${{ matrix.node-version }} - Nest ${{ matrix.nest-version }} - Mongoose ${{ matrix.mongoose-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/mongoose@${{ matrix.nest-version }}
mongoose@${{ matrix.mongoose-version }}
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build