From c549dea047e810828eee69a07a929626b0e8e5e9 Mon Sep 17 00:00:00 2001 From: resonic-user Date: Mon, 16 Jun 2025 13:03:00 +0000 Subject: [PATCH] v --- .github/workflows/cache-verify.yml | 35 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/workflows/cache-verify.yml b/.github/workflows/cache-verify.yml index 9d3dd79fe..141097473 100644 --- a/.github/workflows/cache-verify.yml +++ b/.github/workflows/cache-verify.yml @@ -126,6 +126,23 @@ jobs: ci-all-cache-${{ runner.os }}- ci-all-cache- + # check for node modules etc + - name: Check node_modules exist + run: | + [ -d backend/node_modules ] && echo "✅ backend/node_modules ok" || (echo "❌ backend/node_modules missing" && exit 1) + [ -d webapp/node_modules ] && echo "✅ webapp/node_modules ok" || (echo "❌ webapp/node_modules missing" && exit 1) + - name: Check Cypress binary cache + run: | + [ -d ~/.cache/Cypress ] && echo "✅ Cypress cache ok" || (echo "❌ Cypress cache missing" && exit 1) + + - name: Check Cypress CLI & version + run: | + npx --no-install cypress --version && npx cypress verify + + - name: Check cucumber-json-formatter + run: | + [ -x /opt/cucumber-json-formatter ] && /opt/cucumber-json-formatter --help || (echo "❌ Formatter missing" && exit 1) + - name: Download Docker image artifacts uses: actions/download-artifact@v4 with: @@ -142,24 +159,6 @@ jobs: cp webapp/.env.template webapp/.env || touch webapp/.env cp backend/.env.test_e2e backend/.env || touch backend/.env - # ---- Checks ---- - - name: Check node_modules exist - run: | - [ -d backend/node_modules ] && echo "✅ backend/node_modules ok" || (echo "❌ backend/node_modules missing" && exit 1) - [ -d webapp/node_modules ] && echo "✅ webapp/node_modules ok" || (echo "❌ webapp/node_modules missing" && exit 1) - - - name: Check Cypress binary cache - run: | - [ -d ~/.cache/Cypress ] && echo "✅ Cypress cache ok" || (echo "❌ Cypress cache missing" && exit 1) - - - name: Check Cypress CLI & version - run: | - npx --no-install cypress --version && npx cypress verify - - - name: Check cucumber-json-formatter - run: | - [ -x /opt/cucumber-json-formatter ] && /opt/cucumber-json-formatter --help || (echo "❌ Formatter missing" && exit 1) - - name: Start system run: | docker compose -f docker-compose.yml -f docker-compose.test.yml up --detach