Skip to content

Commit 34eebc2

Browse files
committed
fixup! chore(ci): add new workflows
1 parent 9528743 commit 34eebc2

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/code-coverage.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ jobs:
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
@@ -53,6 +57,7 @@ jobs:
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:

0 commit comments

Comments
 (0)