File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 2525
2626 - name : Run tests with coverage
2727 run : npm run test:coverage
28+ env :
29+ OPENAI_API_KEY : ${{ secrets.OPENAI_API_KEY }}
30+ # Repository Secrets: https://github.com/PaperDebugger/paperdebugger-mcp/settings/secrets/actions
2831
2932 - name : Upload coverage reports
3033 uses : actions/upload-artifact@v4
@@ -56,22 +59,22 @@ jobs:
5659 if (fs.existsSync('coverage/coverage-summary.json')) {
5760 const coverage = JSON.parse(fs.readFileSync('coverage/coverage-summary.json', 'utf8'));
5861 const total = coverage.total;
59-
62+
6063 const comment = `## 📊 Test Coverage Report
61-
62- | Metric | Coverage |
64+
65+ | Metric | Coverage |
6366 |--------|----------|
6467 | Lines | ${total.lines.pct}% (${total.lines.covered}/${total.lines.total}) |
6568 | Functions | ${total.functions.pct}% (${total.functions.covered}/${total.functions.total}) |
6669 | Branches | ${total.branches.pct}% (${total.branches.covered}/${total.branches.total}) |
6770 | Statements | ${total.statements.pct}% (${total.statements.covered}/${total.statements.total}) |
68-
71+
6972 🔗 [View detailed report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})`;
70-
73+
7174 github.rest.issues.createComment({
7275 issue_number: context.issue.number,
7376 owner: context.repo.owner,
7477 repo: context.repo.repo,
7578 body: comment
7679 });
77- }
80+ }
You can’t perform that action at this time.
0 commit comments