diff --git a/.github/workflows/client-ci.yml b/.github/workflows/client-ci.yml new file mode 100644 index 0000000..027e2fe --- /dev/null +++ b/.github/workflows/client-ci.yml @@ -0,0 +1,47 @@ +name: Client CI + +on: + pull_request: + paths: + - 'client/**' + - '.github/workflows/client-ci.yml' + +env: + NODE_VERSION: '22' + PNPM_VERSION: '10.12.4' + +defaults: + run: + working-directory: client + +jobs: + lint-and-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: ${{ env.PNPM_VERSION }} + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + cache: 'pnpm' + cache-dependency-path: client/pnpm-lock.yaml + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Run linter + run: pnpm lint + + - name: Check formatting + run: pnpm format:check + + - name: Build + run: pnpm build diff --git a/client/.prettierignore b/client/.prettierignore new file mode 100644 index 0000000..49c2a49 --- /dev/null +++ b/client/.prettierignore @@ -0,0 +1,19 @@ +# Dependencies +node_modules +.pnpm-store + +# Lock files +pnpm-lock.yaml +package-lock.json +yarn.lock + +# Build outputs +.next +out +dist +build + +# Cache +.cache +.turbo +.prettier-cache diff --git a/client/app/room/[roomId]/_components/QuestionLog.tsx b/client/app/room/[roomId]/_components/QuestionLog.tsx index 3718f82..a55db86 100644 --- a/client/app/room/[roomId]/_components/QuestionLog.tsx +++ b/client/app/room/[roomId]/_components/QuestionLog.tsx @@ -99,9 +99,12 @@ export const QuestionLog = () => { {q.code} -