From 49fa2e508d286f10c5f80b3b5dc5ca28e323ce99 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Wed, 21 Aug 2024 10:27:09 +0200 Subject: fix(cypress): do not install deps twice Signed-off-by: skjnldsv --- .github/workflows/cypress.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.github') diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 356ea0970c9..f0281cfd309 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -115,9 +115,14 @@ jobs: - name: Set up npm ${{ needs.init.outputs.npmVersion }} run: npm i -g 'npm@${{ needs.init.outputs.npmVersion }}' + - name: Install cypress + run: ./node_modules/cypress/bin/cypress install + - name: Run ${{ matrix.containers == 'component' && 'component' || 'E2E' }} cypress tests uses: cypress-io/github-action@df7484c5ba85def7eef30db301afa688187bc378 # v6.7.2 with: + # We already installed the dependencies in the init job + install: false component: ${{ matrix.containers == 'component' }} group: ${{ matrix.use-cypress-cloud && matrix.containers == 'component' && 'Run component' || matrix.use-cypress-cloud && 'Run E2E' || '' }} # cypress env -- cgit v1.2.3