From 0514174b8068f78aa1bd4bfc5a9def50f4d9e48d Mon Sep 17 00:00:00 2001 From: LingyuCoder <--global> Date: Thu, 16 Nov 2023 15:09:16 +0800 Subject: [PATCH] chore: add test diff to pipeline --- .github/workflows/reusable-build.yml | 5 +++++ package.json | 1 + 2 files changed, 6 insertions(+) diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index 5d0f0609b6bd..1c4c86816dfd 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -259,6 +259,11 @@ jobs: if: ${{ inputs.target == 'x86_64-pc-windows-msvc' && matrix.node != '14' }} run: pnpm run test:ci + ### Diff with webpack + - name: Diff test + timeout-minutes: 15 + run: pnpm run test:diff + ### write the latest metric into branch gh-pages ### Note that, We can't merge this script, because this script only runs on main branch - name: Update main branch test compatibility metric diff --git a/package.json b/package.json index 2570f97c9b83..b6c188aa194a 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "prepare": "is-ci || husky install", "pnpm:devPreinstall": "is-ci || node ./scripts/doctor.js", "test:example": "pnpm --filter \"example-*\" build", + "test:diff": "pnpm --filter \"@rspack/*\" test-diff", "test:unit": "pnpm --filter \"@rspack/*\" test", "test:e2e": "pnpm --filter \"@rspack-e2e/*\" test", "test:ci": "cross-env NODE_OPTIONS=--max_old_space_size=8192 pnpm run build:js && pnpm run test:example && pnpm run test:unit && pnpm test:webpack",