From 462ec88b81ab6e77a02cb02eb5873894c14b0e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A9=E9=95=B6?= Date: Fri, 24 Nov 2023 12:12:28 +0800 Subject: [PATCH] ci: remove diff test from release workflow (#4768) Co-authored-by: LingyuCoder <--global> --- .github/workflows/ci.yml | 4 ++++ .github/workflows/reusable-build.yml | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6f0ba4c4f3..b56b0da1723 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: target: x86_64-unknown-linux-gnu profile: "debug" runner: ${{ needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS }} + test-diff: true # test-windows: # name: Test Windows @@ -48,6 +49,7 @@ jobs: # with: # target: x86_64-pc-windows-msvc # profile: "debug" + # test-diff: true test-mac: name: Test Mac @@ -58,6 +60,8 @@ jobs: target: x86_64-apple-darwin profile: "debug" runner: ${{ needs.get-runner-labels.outputs.MACOS_RUNNER_LABELS }} + test-diff: true + cargo-deny: name: Check license of dependencies runs-on: ubuntu-latest diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index 5df0ae6cb45..667d63264ca 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -46,6 +46,10 @@ on: type: boolean required: false default: true + test-diff: # Run Diff Test + type: boolean + required: false + default: false ref: # Git reference to checkout required: false type: string @@ -262,9 +266,9 @@ 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 + if: ${{ inputs.test-diff }} run: pnpm run test:diff ### write the latest metric into branch gh-pages