From 482d384a44ac8c6c0e42c6d2ac19ab45e5ab8b04 Mon Sep 17 00:00:00 2001 From: codens-agent Date: Sat, 27 Jun 2026 09:35:45 +0000 Subject: [PATCH] chore: Add frontend job to .github/workflows/ci.yml with lint, typecheck, and vitest steps --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ package.json | 1 + 2 files changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfe87c69..15376551 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,3 +32,23 @@ jobs: with: name: coverage path: backend/coverage.out + + frontend: + runs-on: ubuntu-latest + env: + NEXT_PUBLIC_API_BASE_URL: http://localhost:8080 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + + - run: npm ci + + - run: npm run lint + + - run: npx tsc --noEmit + + - run: npx vitest run diff --git a/package.json b/package.json index 06e14402..48cc9ad6 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "next build", "start": "next start", "lint": "eslint . --max-warnings=0", + "typecheck": "tsc --noEmit", "format:check": "prettier --check \"**/*.{ts,tsx,js,json,yaml,yml}\"", "format": "prettier --write \"**/*.{ts,tsx,js,json,yaml,yml}\"", "test": "vitest run"