Skip to content

Commit

Permalink
chore: try something else for pr coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgriffintn committed May 6, 2024
1 parent b7ba484 commit 74d3843
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,3 @@ jobs:
CC_TEST_REPORTER_ID: 760097cb88b4c685dce427cf94a8e12a5f082774d06b4f4f5daef839ffc07821
with:
coverageCommand: npm run lcov

- name: Coverage annotations
uses: jgillick/test-coverage-annotations@v1
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
coverage: ./coverage/coverage-summary.json
only-changed-files: true
37 changes: 37 additions & 0 deletions .github/workflows/pr-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Continuous Integration
on:
pull_request:
branches:
- 'main'
permissions:
contents: read
pull-requests: write

jobs:
coverage_report:
name: Generate coverage report
needs: testing
runs-on: ubuntu-latest
strategy:
matrix:
node-version: 22.x
steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Setup LCOV
run: npm run lcov

- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
with:
coverage-files: coverage/lcov.*.info
minimum-coverage: 90
artifact-name: code-coverage-report
github-token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true

0 comments on commit 74d3843

Please sign in to comment.