From 6bca067c6b2a4e0275c17a061c01cf9fa95ad691 Mon Sep 17 00:00:00 2001 From: Kurdistan Tech Ministry Date: Thu, 20 Nov 2025 04:33:16 +0300 Subject: [PATCH] fix: GitHub Actions workflow - correct workspace commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The workflow was using npm workspace commands (-w web) but the repository doesn't have a root package.json configured for workspaces. Updated to use working-directory instead to properly execute commands in the web directory. Changes: - Install dependencies: npm ci in web directory - Run linter: npm run lint in web directory - Run tests: npm run test in web directory - Build project: npm run build in web directory This fixes the "No workspaces found" error that was causing the workflow to fail. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/quality-gate.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/quality-gate.yml b/.github/workflows/quality-gate.yml index fb128476..21c41397 100644 --- a/.github/workflows/quality-gate.yml +++ b/.github/workflows/quality-gate.yml @@ -33,20 +33,20 @@ jobs: ${{ runner.os }}-node- - name: Install dependencies - # Use workspace root package-lock.json + working-directory: ./web run: npm ci - name: Run Linter - # Use web workspace for linting - run: npm run lint -w web + working-directory: ./web + run: npm run lint - name: Run Tests - # Use web workspace for testing - run: npm run test -w web -- --run + working-directory: ./web + run: npm run test - name: Build Project - # Use web workspace for building - run: npm run build -w web + working-directory: ./web + run: npm run build # ======================================== # SECURITY CHECKS (INFORMATIVE)