Skip to content

Commit 747ee9d

Browse files
chore: add knip health checks to repo (#32994)
* chore: add knip health checks to repo * move health check to correct package * add no exit code
1 parent 532c78e commit 747ee9d

File tree

8 files changed

+964
-83
lines changed

8 files changed

+964
-83
lines changed

.circleci/src/pipeline/@pipeline.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,15 @@ jobs:
15331533
name: Check TS Types
15341534
command: NODE_OPTIONS=--max_old_space_size=4096 yarn check-ts --concurrency=1
15351535

1536+
health-check:
1537+
<<: *defaults
1538+
steps:
1539+
- restore_cached_workspace
1540+
- install-required-node
1541+
- run:
1542+
name: Health Check (Knip)
1543+
command: yarn health-check
1544+
15361545
# a special job that closes the Percy build started by the required jobs
15371546
percy-finalize:
15381547
<<: *defaults

.circleci/src/pipeline/workflows/@main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ linux-x64:
1818
- check-ts:
1919
requires:
2020
- build
21+
- health-check:
22+
requires:
23+
- build
2124
- lint:
2225
name: linux-lint
2326
requires:
@@ -253,6 +256,7 @@ linux-x64:
253256
# filters: *mainBuildFilters
254257
requires:
255258
- check-ts
259+
- health-check
256260
- npm-angular
257261
- npm-eslint-plugin-dev
258262
- npm-puppeteer-unit-tests

.circleci/src/pipeline/workflows/pull-request.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
requires:
3535
- internal-pr-build
3636
- external-pr-build
37+
- health-check:
38+
requires:
39+
- internal-pr-build
40+
- external-pr-build
3741
- lint:
3842
name: linux-lint
3943
requires:

cli/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
"build-cli": "tsc -p tsconfig.build.json && tsc -p tsconfig.esm.json && tsx ./scripts/build.ts && tsx ./scripts/post-build.ts",
88
"clean": "tsx ./scripts/clean.ts",
99
"dtslint": "dtslint types",
10-
"postinstall": "patch-package && tsx ./scripts/post-install.ts",
1110
"lint": "eslint",
11+
"postinstall": "patch-package && tsx ./scripts/post-install.ts",
1212
"prebuild": "yarn postinstall && tsx ./scripts/start-build.ts",
1313
"size": "t=\"cypress-v0.0.0.tgz\"; yarn pack --filename \"${t}\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
1414
"test": "yarn test-unit",
1515
"test-debug": "npx vitest --inspect-brk --no-file-parallelism --test-timeout=0",
16-
"test-dependencies": "dependency-check . --missing --no-dev --verbose",
1716
"test-unit": "vitest run",
1817
"types": "yarn dtslint"
1918
},
@@ -81,7 +80,6 @@
8180
"@types/sinon": "9.0.9",
8281
"@types/sinon-chai": "3.2.12",
8382
"cross-env": "7.0.3",
84-
"dependency-check": "4.1.0",
8583
"dtslint": "4.2.1",
8684
"eslint": "^9.31.0",
8785
"execa-wrap": "1.4.0",

0 commit comments

Comments
 (0)