From ccedbc38cc194393e6a6c75514014ee15d0e4456 Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Wed, 26 Aug 2026 17:29:30 +0530 Subject: [PATCH 1/2] fix(ci): run Server API tests from repo root The refactor-structure PR moved the Express backend (package.json, __tests__/, etc.) to the repo root, but this workflow still did `working-directory: ./server`, which no longer exists. That made every run fail immediately with "No such file or directory", so the Server API tests check has been red on every push/PR since. This points the checkout, install, cache, and test steps at the repo root to match the current layout. Verified locally: `npm ci && npm test` passes (12/12 tests, 2 suites) from root. --- .github/workflows/API-tests.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/API-tests.yml b/.github/workflows/API-tests.yml index 4207802..de54299 100644 --- a/.github/workflows/API-tests.yml +++ b/.github/workflows/API-tests.yml @@ -22,18 +22,16 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Cache server node modules + - name: Cache node modules uses: actions/cache@v4 with: - path: server/node_modules - key: ${{ runner.os }}-server-${{ hashFiles('server/package-lock.json') }} + path: node_modules + key: ${{ runner.os }}-server-${{ hashFiles('package-lock.json') }} restore-keys: | ${{ runner.os }}-server- - - name: Install server dependencies - working-directory: ./server + - name: Install dependencies run: npm ci - name: Run server tests - working-directory: ./server run: npm test From 8927ef665aa9e185fc9a84f33564de8bb2df13e4 Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Wed, 26 Aug 2026 17:38:58 +0530 Subject: [PATCH 2/2] Enhance API tests workflow with explanatory comments Added comments to clarify the purpose and context of the API tests workflow. --- .github/workflows/API-tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/API-tests.yml b/.github/workflows/API-tests.yml index de54299..3b5d3bb 100644 --- a/.github/workflows/API-tests.yml +++ b/.github/workflows/API-tests.yml @@ -1,5 +1,10 @@ name: Server API tests +# Gates the Server API tests check on every push/PR to main. +# The Express backend lives at the repo root (moved out of server/ during +# the backend-focused restructure) - run these steps from repo root, not +# a server/ subdirectory. + on: push: branches: [ main ]