From c9ef66b1be9d6d476872bb1f90ff131e79352845 Mon Sep 17 00:00:00 2001 From: "chenjiawei.inizio" Date: Mon, 24 Feb 2025 15:47:22 +0800 Subject: [PATCH] chore: enable test --- .github/workflows/ci.yml | 4 ++-- common/config/rush/command-line.json | 20 ++++++++++++++++++++ common/config/rush/pnpm-config.json | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9499a812..f97ef297 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,5 +28,5 @@ jobs: run: node common/scripts/install-run-rush.js install - name: Rush build run: node common/scripts/install-run-rush.js build - # - name: Test (coverage) - # run: node common/scripts/install-run-rush.js test:cov -v + - name: Test (coverage) + run: node common/scripts/install-run-rush.js test:cov -v diff --git a/common/config/rush/command-line.json b/common/config/rush/command-line.json index 4e577ad0..fae5aee1 100644 --- a/common/config/rush/command-line.json +++ b/common/config/rush/command-line.json @@ -192,6 +192,26 @@ "autoinstallerName": "rush-commands", "shellCommand": "node common/autoinstallers/rush-commands/check-circular-dependency.mjs" }, + { + "commandKind": "bulk", + "name": "test", + "description": "Executes automated tests.", + "allowWarningsInSuccessfulBuild": true, + "ignoreMissingScript": true, + "enableParallelism": true, + "incremental": true, + "summary": "⭐️️ Run test command for each package" + }, + { + "commandKind": "bulk", + "name": "test:cov", + "description": "Executes automated tests with coverage collection.", + "allowWarningsInSuccessfulBuild": true, + "ignoreMissingScript": true, + "enableParallelism": true, + "incremental": true, + "summary": "⭐️️ Run coverage command for each package" + }, // 本地包构建 + watch { "name": "build:watch", diff --git a/common/config/rush/pnpm-config.json b/common/config/rush/pnpm-config.json index e145318c..8f1f0bae 100644 --- a/common/config/rush/pnpm-config.json +++ b/common/config/rush/pnpm-config.json @@ -60,7 +60,7 @@ * The default value is false. */ - // "autoInstallPeers": false, + "autoInstallPeers": true, /** * If true, then Rush will add the `--strict-peer-dependencies` command-line parameter when