Skip to content

Commit

Permalink
Merge pull request #11517 from nestjs/10.0.0
Browse files Browse the repository at this point in the history
chore: laying the grounds for 10.0.0
  • Loading branch information
kamilmysliwiec committed Jun 12, 2023
2 parents 7cdca66 + 98bb859 commit a41e6bc
Show file tree
Hide file tree
Showing 189 changed files with 26,128 additions and 21,979 deletions.
59 changes: 28 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ version: 2
aliases:
- &restore-cache
restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
key: dependency-cache-{{ checksum "package.json" }}
- &install-deps
run:
name: Install dependencies
command: npm ci
name: Install dependencies
command: npm ci --legacy-peer-deps
- &build-packages
run:
name: Build
command: npm run build
name: Build
command: npm run build
- &run-unit-tests
run:
name: Test
command: npm run test
name: Test
command: npm run test

unit-tests-template: &unit-tests-template
working_directory: ~/nest
Expand All @@ -30,7 +30,7 @@ jobs:
build:
working_directory: ~/nest
docker:
- image: circleci/node:12
- image: cimg/node:16.19
steps:
- checkout
- run:
Expand All @@ -40,29 +40,19 @@ jobs:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm ci
command: npm ci --legacy-peer-deps
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: Build
command: npm run build

test_node_12:
<<: *unit-tests-template
docker:
- image: circleci/node:12

test_node_14:
<<: *unit-tests-template
docker:
- image: circleci/node:14

test_node_16:
working_directory: ~/nest
docker:
- image: circleci/node:16
- image: cimg/node:16.19
steps:
- checkout
- *restore-cache
Expand All @@ -77,6 +67,16 @@ jobs:
- store_artifacts:
path: coverage

test_node_18:
<<: *unit-tests-template
docker:
- image: cimg/node:18.14

test_node_19:
<<: *unit-tests-template
docker:
- image: cimg/node:19.8

lint:
working_directory: ~/nest
docker:
Expand All @@ -97,17 +97,17 @@ jobs:
machine: true
steps:
- checkout
- run:
- run:
name: Prepare nvm
command: |
echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
echo ' [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> $BASH_ENV
- run:
- run:
name: Upgrade Node.js
command: |
nvm install v12
nvm install v16
node -v
nvm alias default v12
nvm alias default v16
- run:
name: Install Docker Compose
command: |
Expand All @@ -126,11 +126,11 @@ jobs:
- run:
name: Integration tests
command: npm run test:integration

codechecks_benchmarks:
working_directory: ~/nest
docker:
- image: circleci/node:16
- image: cimg/node:16.19
steps:
- checkout
- *restore-cache
Expand All @@ -146,7 +146,7 @@ jobs:
samples:
working_directory: ~/nest
docker:
- image: circleci/node:16
- image: cimg/node:16.19
environment:
- DISABLE_OPENCOLLECTIVE: true
steps:
Expand All @@ -165,10 +165,7 @@ workflows:
- test_node_16:
requires:
- build
- test_node_14:
requires:
- build
- test_node_12:
- test_node_18:
requires:
- build
- lint:
Expand Down
2 changes: 1 addition & 1 deletion integration/auto-mock/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"target": "ES2021",
"sourceMap": true,
"allowJs": true,
"outDir": "./dist",
Expand Down
39 changes: 0 additions & 39 deletions integration/cache/e2e/async-register-extra-providers.ts

This file was deleted.

39 changes: 0 additions & 39 deletions integration/cache/e2e/async-register.spec.ts

This file was deleted.

35 changes: 0 additions & 35 deletions integration/cache/e2e/custom-ttl.spec.ts

This file was deleted.

31 changes: 0 additions & 31 deletions integration/cache/e2e/multi-store.spec.ts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit a41e6bc

Please sign in to comment.