Skip to content

Conversation

@forwardOne
Copy link
Owner

GitHub ActionsによるCIワークフローを追加します。
テストコードは試験的に実装しました。

このワークフローは、mainブランチへのプッシュまたはプルリクエスト時に、バックエンド(Python/pytest)とフロントエンド(Node.js/Vitest)のテストを自動実行します。

Closes #7

Copy link
Owner Author

@forwardOne forwardOne left a comment

Choose a reason for hiding this comment

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

チケット駆動のためIssueの利用、テストコードとGithub Actionsのワークフロー追加

run: pip install -r requirements.txt
- name: Run tests
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
Copy link
Owner Author

Choose a reason for hiding this comment

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

secrets を使ってAPIキーを渡すことで、CIでの認証エラーを解決。

# 以下の"YOUR_API_KEY_HERE"を実際のAPIキーに置き換えてください。

# GEMINI_API_KEY="YOUR_API_KEY_HERE"
# ファイル名を.envに変更して使用してください。
Copy link
Owner Author

Choose a reason for hiding this comment

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

ユーザー向けに環境変数のテンプレートを追加。

// @testing-library/jest-dom の拡張アサーションを有効化
import '@testing-library/jest-dom';

// Mock for window.matchMedia used in use-mobile hook
Copy link
Owner Author

Choose a reason for hiding this comment

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

ブレークポイント対応

@forwardOne forwardOne merged commit 87f3084 into main Nov 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]Github Actionsのためのテストコードの導入

2 participants