Skip to content

Commit

Permalink
Add Yarn dedupe CI check (#12717)
Browse files Browse the repository at this point in the history
  • Loading branch information
F3n67u authored Apr 23, 2022
1 parent 7a8c9cf commit 4f1d199
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
run: yarn check-copyright-headers

yarn-validate:
name: Validate Yarn constraints
name: Validate Yarn dependencies and constraints
runs-on: ubuntu-latest
needs: prepare-yarn-cache
steps:
Expand All @@ -93,8 +93,9 @@ jobs:
node-version: lts/*
cache: yarn
- name: 'Check for unmet constraints (fix w/ "yarn constraints --fix")'
run: |
yarn constraints
run: yarn constraints
- name: 'Check for duplicate dependencies (fix w/ "yarn dedupe")'
run: yarn dedupe --check

test:
name: Node v${{ matrix.node-version }} on ${{ matrix.os }} (${{ matrix.shard }})
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
"node": "^12.13.0 || ^14.15.0 || ^16.13.0 || >=17.0.0"
},
"resolutions": {
"@types/node": "~12.12.0",
"babel-jest": "workspace:*",
"jest": "workspace:*",
"jest-environment-node": "workspace:*",
Expand Down
16 changes: 1 addition & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5203,27 +5203,13 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*, @types/node@npm:~12.12.0":
"@types/node@npm:~12.12.0":
version: 12.12.70
resolution: "@types/node@npm:12.12.70"
checksum: 69c193e0bce8fa914d478f829bd923ee662b220e069a2e00ffbe109f27d0b38fbf2a9fe78c99eb4d4ccb294248ff8de68019a2c7fadb032d301c6feca25f3d22
languageName: node
linkType: hard

"@types/node@npm:12.20.24":
version: 12.20.24
resolution: "@types/node@npm:12.20.24"
checksum: e7a13460e2f5b0b5a32c0f3af7daf1a05201552a66d542d3cc3b1ea8b52d4730250f9eb1961d755e31cfe5d03c78340911a6242657a0a9a17d6f7e341fc9f366
languageName: node
linkType: hard

"@types/node@npm:^17.0.5":
version: 17.0.23
resolution: "@types/node@npm:17.0.23"
checksum: a3517554737cbb042e76c30d0e5482192ac4d9bea0eeb086e2622d9cabf460a0eb52a696b99fcd18e7fcc93c96db6cc7ae507f6608f256ef0b5c1d8c87a5a470
languageName: node
linkType: hard

"@types/normalize-package-data@npm:^2.4.0":
version: 2.4.1
resolution: "@types/normalize-package-data@npm:2.4.1"
Expand Down

0 comments on commit 4f1d199

Please sign in to comment.