Skip to content

Commit

Permalink
feat(): set peer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alinianitchii committed Mar 7, 2024
1 parent f43a1cc commit 5148717
Show file tree
Hide file tree
Showing 3 changed files with 3,642 additions and 3,710 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,32 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
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 }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
- 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 }}
mongoose@${{ matrix.mongoose-version }}

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build
Loading

0 comments on commit 5148717

Please sign in to comment.