Skip to content

Conversation

@nkoji21
Copy link
Owner

@nkoji21 nkoji21 commented Oct 1, 2025

やったこと

  • フロントエンド用に、CIを構築した
  • act ツールを用いて、ローカルでCIテストした
  • node_modulesや、lockファイルをフォーマットするのは良くないので、ignoreファイルを作成
  • CI用に、フォーマットのチェックスクリプトを作成

メモ

チェックスクリプト、キャッシュ機能を追加してるけど、CI環境の場合恩恵はない。
クリーンな環境なため。

ローカルで使うかもしれないので一応つけた。


Note

Introduce a client CI workflow running lint, format check, and build; add Prettier ignore and a format:check script; apply minor formatting/style cleanups.

  • CI:
    • Add workflow /.github/workflows/client-ci.yml to run pnpm install, lint, format:check, and build on PRs affecting client/**.
  • Tooling:
    • Add client/.prettierignore to exclude deps/build outputs/locks from formatting.
    • Add format:check script in client/package.json.
  • Client UI/Code:
    • Minor className ordering and formatting adjustments in client/app/room/[roomId]/_components/QuestionLog.tsx and client/app/room/[roomId]/_components/ingame/QuizGameClient.tsx.

Written by Cursor Bugbot for commit 3ecc50d. This will update automatically on new commits. Configure here.

@nkoji21 nkoji21 self-assigned this Oct 1, 2025
Copilot AI review requested due to automatic review settings October 1, 2025 11:47
@nkoji21 nkoji21 requested a review from pipapo-888 as a code owner October 1, 2025 11:47
@nkoji21 nkoji21 added the 🔧 環境 開発環境の構築や設定に関するタスク label Oct 1, 2025
@nkoji21 nkoji21 added the 🖥️ フロントエンド ユーザーが直接見る画面や操作に関わるタスク label Oct 1, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

フロントエンド用のCI/CDパイプラインを構築し、コード品質を自動チェックする仕組みを導入しました。Prettierのフォーマットチェック機能とGitHub Actionsワークフローを追加し、プルリクエスト時に自動的にリンターとフォーマットチェックが実行されるようになりました。

  • フォーマットチェック用のnpmスクリプト追加
  • GitHub ActionsによるCI構築(リンター、フォーマットチェック、ビルド)
  • Prettierのignoreファイル作成でnode_modulesやlockファイルを除外

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
client/package.json フォーマットチェック用のスクリプト format:check を追加
client/.prettierignore Prettierが処理しないファイル・フォルダーを定義
.github/workflows/client-ci.yml プルリクエスト時にリンター、フォーマット、ビルドを実行するCIワークフロー
client/app/room/[roomId]/_components/ingame/QuizGameClient.tsx Prettierによる自動フォーマット適用
client/app/room/[roomId]/_components/QuestionLog.tsx Prettierによる自動フォーマット適用
Comments suppressed due to low confidence (1)

.github/workflows/client-ci.yml:24

  • [必須] pnpm version 10.12.4 が存在しない可能性があります。pnpmの公式リリースを確認し、実際に存在するバージョンに修正してください。例: version: 9.12.4 や最新の安定版を指定することを推奨します。
          version: 10.12.4

@nkoji21 nkoji21 merged commit fd86853 into main Oct 1, 2025
2 checks passed
@nkoji21 nkoji21 deleted the chore/client-ci branch October 1, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔧 環境 開発環境の構築や設定に関するタスク 🖥️ フロントエンド ユーザーが直接見る画面や操作に関わるタスク

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Github Actionによる、Next.jsのCI

3 participants