From 6b131145e7f0c21ec13f2e9066d5aa299e2f4214 Mon Sep 17 00:00:00 2001 From: resonic-user Date: Mon, 16 Jun 2025 14:53:47 +0000 Subject: [PATCH] v --- .github/workflows/cache-verify.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/cache-verify.yml b/.github/workflows/cache-verify.yml index be65958d2..b40d646a0 100644 --- a/.github/workflows/cache-verify.yml +++ b/.github/workflows/cache-verify.yml @@ -69,6 +69,7 @@ jobs: path: | backend/node_modules webapp/node_modules + cypress/node_modules ~/.cache/Cypress /opt/cucumber-json-formatter key: ${{ steps.cache-key.outputs.key }} @@ -78,39 +79,26 @@ jobs: - name: Install backend dependencies if needed run: | if [ ! -d backend/node_modules ] || [ -z "$(ls -A backend/node_modules)" ]; then - echo "Installing backend dependencies..." cd backend && yarn install - else - echo "✅ backend/node_modules already present." fi - name: Install webapp dependencies if needed run: | if [ ! -d webapp/node_modules ] || [ -z "$(ls -A webapp/node_modules)" ]; then - echo "Installing webapp dependencies..." cd webapp && yarn install - else - echo "✅ webapp/node_modules already present." fi - - name: Install Cypress binary if needed + - name: Install Cypress dependencies locally run: | - if [ ! -d ~/.cache/Cypress ] || ! npx --no-install cypress verify >/dev/null 2>&1; then - echo "Installing Cypress binary..." - yarn global add cypress - npx cypress verify - else - echo "✅ Cypress binary already present." + if [ ! -d cypress/node_modules ] || [ -z "$(ls -A cypress/node_modules)" ]; then + cd cypress && yarn install fi - name: Install cucumber-json-formatter if missing run: | if [ ! -f /opt/cucumber-json-formatter ]; then - echo "Downloading cucumber-json-formatter..." wget --no-verbose -O /opt/cucumber-json-formatter "https://github.com/cucumber/json-formatter/releases/download/v19.0.0/cucumber-json-formatter-linux-386" chmod +x /opt/cucumber-json-formatter - else - echo "✅ Formatter already present." fi - name: Save updated CI cache @@ -120,11 +108,11 @@ jobs: path: | backend/node_modules webapp/node_modules + cypress/node_modules ~/.cache/Cypress /opt/cucumber-json-formatter key: ${{ steps.cache-key.outputs.key }} - verify-environment: runs-on: ubuntu-latest needs: [cache-environment]