File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 - name : Install dependencies
2121 run : npm ci
2222
23- - name : Run coverage and save output
24- run : npm run test:coverage > test-results.txt || true
23+ - name : Run coverage and extract table
24+ run : |
25+ npm run test:coverage > full-coverage.txt || true
26+ # Extract the coverage table (lines between table header and footer)
27+ sed -n '/^-------------------------|---------|----------|---------|---------|/,$p' full-coverage.txt | \
28+ sed '/^=============================== Coverage summary ===============================/,$d' > coverage-table.txt
2529
2630 - name : Comment test results
2731 uses : marocchino/sticky-pull-request-comment@v2
5357 badge : true
5458 format : markdown
5559 output : both
60+ indicators : true
5661 - name : Post coverage comment
5762 uses : marocchino/sticky-pull-request-comment@v2
5863 with :
You can’t perform that action at this time.
0 commit comments