-
Notifications
You must be signed in to change notification settings - Fork 0
CI: E2E テストを GitHub Actions に追加 #24
Copy link
Copy link
Open
Description
概要
現在の CI ワークフロー(.github/workflows/ci.yml)ではユニットテスト(yarn test)のみ実行しており、E2E テスト(vitest.e2e.config.ts)は含まれていない。
背景
E2E テストは Puppeteer によるヘッドレスブラウザ実行が必要であり、CI 環境では以下のセットアップが追加で必要:
- Chromium / Chrome のインストール(
npx puppeteer browsers install chromeまたはシステムパッケージ) - テストサーバー(Hono, port 8010)の起動(
globalSetupで自動化済み) maxWorkers: 1による直列実行(vitest.e2e.config.tsで設定済み)
実装方針
ci.ymlにe2eジョブを追加(needs: build)- Puppeteer 用の Chromium セットアップステップを追加
yarn vitest run --config vitest.e2e.config.tsを実行
参考
- Puppeteer Troubleshooting: Running on CI
- 検索キーワード:
puppeteer github actions chromium headless
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels