From 0798ca8847be8e65f99ffe89ed0aeb5b69267265 Mon Sep 17 00:00:00 2001 From: resonic-user Date: Mon, 16 Jun 2025 10:14:55 +0000 Subject: [PATCH] e2e --- .github/workflows/cache-verify.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cache-verify.yml b/.github/workflows/cache-verify.yml index 11c63b2e0..b2b20d7a7 100644 --- a/.github/workflows/cache-verify.yml +++ b/.github/workflows/cache-verify.yml @@ -25,7 +25,13 @@ jobs: env: LOCK_HASH: ${{ hashFiles('backend/yarn.lock', 'webapp/yarn.lock') }} + - name: Show lockfile hashes (debug) + run: | + echo "backend/yarn.lock hash: ${{ hashFiles('backend/yarn.lock') }}" + echo "webapp/yarn.lock hash: ${{ hashFiles('webapp/yarn.lock') }}" + - name: Restore node_modules cache + id: restore-cache uses: actions/cache@v4 with: path: | @@ -36,6 +42,9 @@ jobs: node-modules-${{ runner.os }}- node-modules- + - name: Show cache hit status + run: echo "Cache hit: ${{ steps.restore-cache.outputs.cache-hit }}" + - name: Install backend deps run: | cd backend @@ -48,13 +57,15 @@ jobs: yarn install yarn build - - name: Serve static webapp if build output exists + - name: Start webapp (static or fallback) run: | if [ -d "webapp/out" ]; then - echo "Starting static server for webapp/out..." + echo "Serving webapp/out statically..." npx serve -s webapp/out -l 3000 & else - echo "⚠️ webapp/out does not exist. Skipping server start." + echo "webapp/out not found – falling back to yarn start..." + cd webapp + yarn start & fi - name: Test HTTP wait logic @@ -65,4 +76,4 @@ jobs: echo "Attempt $i failed. Retrying..." sleep 2 done - echo "❌ Service did not respond in time." && exit 1 + echo "❌ Service did not respond in time." && exit 1 \ No newline at end of file