-
Notifications
You must be signed in to change notification settings - Fork 1
Codecovを追加し、テストカバレッジを計測できるように変更 #500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -30,7 +30,12 @@ jobs: | |||||||||||||||||||||||||||
| run: npm run build | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| - name: Test | ||||||||||||||||||||||||||||
| run: npm test | ||||||||||||||||||||||||||||
| run: npx vitest run --coverage | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| - name: Upload results to Codecov | ||||||||||||||||||||||||||||
| uses: codecov/codecov-action@v5 | ||||||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||||||
| token: ${{ secrets.CODECOV_TOKEN }} | ||||||||||||||||||||||||||||
|
Comment on lines
+35
to
+38
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CODECOV_TOKENシークレットの宣言が不足しています ワークフローでは 次のdiffを適用してシークレット宣言を追加してください: on:
workflow_call:
secrets:
gha_service_account:
required: true
firebase_project_id:
required: true
+ codecov_token:
+ required: true📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.7)38-38: property "codecov_token" is not defined in object type {actions_runner_debug: string; actions_step_debug: string; firebase_project_id: string; gha_service_account: string; github_token: string} (expression) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| - name: Deploy Functions | ||||||||||||||||||||||||||||
| working-directory: openci-runner/firebase | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
カバレッジ設定の確認を推奨します
Vitestカバレッジコマンドは正しく実装されていますが、
vitest.config.tsまたはvitest.config.jsファイルでカバレッジ設定(カバレッジプロバイダー、対象ディレクトリ、除外パターンなど)が適切に定義されているか確認してください。以下のスクリプトを実行してVitest設定ファイルの存在を確認してください:
🏁 Script executed:
Length of output: 0
🏁 Script executed:
Length of output: 193
Vitest設定ファイルの追加とカバレッジ設定の明示化 プロジェクトルートに
vitest.config.ts(または.js)を作成し、coverage.provider、include、excludeなどのカバレッジ設定を定義してください。🤖 Prompt for AI Agents