Skip to content

Commit

Permalink
add action to report coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Nov 4, 2024
1 parent 88fcd52 commit a826c77
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build_test_validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches: [ main ]
pull_request:

permissions:
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -47,6 +50,22 @@ jobs:
USER_ID: ${{secrets.user_id}}
- run: npm run test
- run: npm run test:coverage
if: ${{ matrix.node-version == '22.x' }}
- name: Code Coverage Report
if: ${{ matrix.node-version == '22.x' }}
uses: irongut/[email protected]
with:
filename: "packages/**/coverage/cobertura-coverage.xml"
format: markdown
hide_branch_rate: false
output: both
badge: true
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
- name: Archive coverage files
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit a826c77

Please sign in to comment.