From 0c8e6220bfbe45b132fe403a6ee6328d662a37ff Mon Sep 17 00:00:00 2001 From: AbbasFullstack <2.93289017e+08+AbbasFullstack@users.noreply.github.com> Date: Thu, 27 Aug 2026 12:01:36 +0000 Subject: [PATCH 1/2] Add automated quality checks --- .github/workflows/ci.yml | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fe513f7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: Frontend quality checks + +on: + pull_request: + branches: [main] + push: + branches: [main] + +permissions: + contents: read + +jobs: + frontend: + name: Frontend lint, tests, and build + runs-on: ubuntu-latest + timeout-minutes: 15 + defaults: + run: + working-directory: frontend + steps: + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + cache-dependency-path: frontend/package-lock.json + + - name: Install frontend dependencies + run: npm ci + + - name: Lint frontend + run: npm run lint + + - name: Run frontend tests + run: npm test + + - name: Build frontend + run: npm run build From 69fd7201de39019c231bc3cb7f4f71fc2cef59fb Mon Sep 17 00:00:00 2001 From: AbbasFullstack <2.93289017e+08+AbbasFullstack@users.noreply.github.com> Date: Thu, 27 Aug 2026 12:21:40 +0000 Subject: [PATCH 2/2] Provide CI-only Supabase build configuration --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe513f7..bf045d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,4 +38,7 @@ jobs: run: npm test - name: Build frontend + env: + NEXT_PUBLIC_SUPABASE_URL: https://ci-placeholder.supabase.co + NEXT_PUBLIC_SUPABASE_ANON_KEY: ci-placeholder-anon-key run: npm run build