feat: add new workflow - Pull Request #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Coverage on Pull Request | |
on: pull_request | |
jobs: | |
build-and-run-coverage: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: pnpm i | |
- name: Build | |
run: pnpm run build | |
- name: Run test and coverage | |
run: pnpm run coverage | |
- name: Report Coverage | |
uses: davelosert/vitest-coverage-report-action@v2 |