From 9e16cad54979d9451eb360bfa06f1d5d2e5ebd86 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 28 Feb 2023 20:03:07 +0800 Subject: [PATCH] fix: only install cypress on cypress tests --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0558ffea..a839431e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,7 +168,7 @@ jobs: run: pnpm build - name: Force download Cypress on cache miss - if: steps.cache-cypress.outputs.cache-hit != 'true' + if: ${{ contains(matrix.flag-for-e2e, '--cypress') && steps.cache-cypress.outputs.cache-hit != 'true'}} working-directory: ../sample-project run: pnpm exec cypress install --force -- 2.39.5