Commit 2de262ed authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

deps: remove nyc (#11195)

* deps: remove nyc

nyc is an unused dep for code coverage. This commit removes
the dep as it is no longer used. We should remove deps that
are not used as it bloats dependabot fixes in the monorepo
as well as introducing attack vectors. Every dep is a liability
and we should only have deps that we really need.

* ci: cleanup

Remove the calls to code coverage in ci

* ci: add test
parent 0a42fa8a
...@@ -713,9 +713,6 @@ jobs: ...@@ -713,9 +713,6 @@ jobs:
description: Regex matching dependent packages description: Regex matching dependent packages
type: string type: string
default: this-package-does-not-exist default: this-package-does-not-exist
coverage_flag:
description: Coverage flag name
type: string
docker: docker:
- image: <<pipeline.parameters.ci_builder_image>> - image: <<pipeline.parameters.ci_builder_image>>
resource_class: large resource_class: large
...@@ -738,11 +735,8 @@ jobs: ...@@ -738,11 +735,8 @@ jobs:
working_directory: packages/<<parameters.package_name>> working_directory: packages/<<parameters.package_name>>
- run: - run:
name: Test name: Test
command: pnpm test:coverage command: pnpm test
working_directory: packages/<<parameters.package_name>> working_directory: packages/<<parameters.package_name>>
- run:
name: Upload coverage
command: codecov --verbose --clean --flags <<parameters.coverage_flag>>
todo-issues: todo-issues:
machine: machine:
...@@ -1551,18 +1545,10 @@ workflows: ...@@ -1551,18 +1545,10 @@ workflows:
- pnpm-monorepo - pnpm-monorepo
- js-lint-test: - js-lint-test:
name: chain-mon-tests name: chain-mon-tests
coverage_flag: chain-mon-tests
package_name: chain-mon package_name: chain-mon
dependencies: "(contracts-bedrock|sdk)" dependencies: "(contracts-bedrock|sdk)"
requires: requires:
- pnpm-monorepo - pnpm-monorepo
- js-lint-test:
name: sdk-tests
coverage_flag: sdk-tests
package_name: sdk
dependencies: "contracts-bedrock"
requires:
- pnpm-monorepo
- semgrep-scan - semgrep-scan
- go-mod-download - go-mod-download
- fuzz-golang: - fuzz-golang:
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
node_modules node_modules
results results
temp temp
.nyc_output
coverage.json coverage.json
*.tsbuildinfo *.tsbuildinfo
**/lcov.info **/lcov.info
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
"install:ci": "pnpm install --ignore-scripts --frozen-lockfile && pnpm rebuild nx", "install:ci": "pnpm install --ignore-scripts --frozen-lockfile && pnpm rebuild nx",
"install:ci:offline": "pnpm install --ignore-scripts --offline --frozen-lockfile && pnpm rebuild nx", "install:ci:offline": "pnpm install --ignore-scripts --offline --frozen-lockfile && pnpm rebuild nx",
"lint": "npx nx run-many --target=lint", "lint": "npx nx run-many --target=lint",
"test:coverage": "npx nx run-many --target=test:coverage",
"lint:ts:check": "npx nx run-many --target=lint:ts:check", "lint:ts:check": "npx nx run-many --target=lint:ts:check",
"lint:check": "npx nx run-many --target=lint:check", "lint:check": "npx nx run-many --target=lint:check",
"lint:fix": "npx nx run-many --target=lint:fix", "lint:fix": "npx nx run-many --target=lint:fix",
...@@ -64,7 +63,6 @@ ...@@ -64,7 +63,6 @@
"mocha": "^10.6.0", "mocha": "^10.6.0",
"nx": "18.2.2", "nx": "18.2.2",
"nx-cloud": "latest", "nx-cloud": "latest",
"nyc": "^15.1.0",
"prettier": "^2.8.0", "prettier": "^2.8.0",
"rimraf": "^5.0.5", "rimraf": "^5.0.5",
"ts-mocha": "^10.0.0", "ts-mocha": "^10.0.0",
......
...@@ -26,7 +26,6 @@ ...@@ -26,7 +26,6 @@
"start:faultproof-wd-mon": "tsx ./src/faultproof-wd-mon/service.ts", "start:faultproof-wd-mon": "tsx ./src/faultproof-wd-mon/service.ts",
"start:initialized-upgraded-mon": "tsx ./contrib/initialized-upgraded-mon/service.ts", "start:initialized-upgraded-mon": "tsx ./contrib/initialized-upgraded-mon/service.ts",
"test": "hardhat test", "test": "hardhat test",
"test:coverage": "nyc hardhat test && nyc merge .nyc_output coverage.json",
"build": "tsc -p ./tsconfig.json", "build": "tsc -p ./tsconfig.json",
"clean": "rimraf dist/ ./tsconfig.tsbuildinfo", "clean": "rimraf dist/ ./tsconfig.tsbuildinfo",
"lint": "pnpm lint:fix && pnpm lint:check", "lint": "pnpm lint:fix && pnpm lint:check",
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
"lint": "pnpm lint:fix && pnpm lint:check", "lint": "pnpm lint:fix && pnpm lint:check",
"lint:check": "eslint . --max-warnings=0", "lint:check": "eslint . --max-warnings=0",
"lint:fix": "pnpm lint:check --fix", "lint:fix": "pnpm lint:check --fix",
"test": "hardhat test",
"test:coverage": "nyc hardhat test && nyc merge .nyc_output coverage.json",
"autogen:docs": "typedoc --out docs src/index.ts" "autogen:docs": "typedoc --out docs src/index.ts"
}, },
"keywords": [ "keywords": [
...@@ -40,7 +38,6 @@ ...@@ -40,7 +38,6 @@
"ethers": "^5.7.2", "ethers": "^5.7.2",
"hardhat": "^2.20.1", "hardhat": "^2.20.1",
"hardhat-deploy": "^0.12.4", "hardhat-deploy": "^0.12.4",
"nyc": "^15.1.0",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typedoc": "^0.25.7", "typedoc": "^0.25.7",
"typescript": "^5.5.3" "typescript": "^5.5.3"
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment