You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
652 B
26 lines
652 B
name: Test Coverage PR |
|
on: |
|
pull_request: |
|
|
|
jobs: |
|
coverage: |
|
runs-on: ubuntu-latest |
|
permissions: |
|
contents: read |
|
pull-requests: write |
|
|
|
steps: |
|
- uses: actions/checkout@v2 |
|
- name: "Install Node" |
|
uses: actions/setup-node@v2 |
|
with: |
|
node-version: "18.x" |
|
- name: "Install Deps" |
|
run: yarn install |
|
- name: "Test Coverage" |
|
run: yarn test:coverage |
|
- name: "Report Coverage" |
|
if: always() # Also generate the report if tests are failing |
|
uses: davelosert/vitest-coverage-report-action@v2 |
|
with: |
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|