Development #2
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: 'Test' | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
# Required to checkout the code | |
contents: read | |
# Required to put a comment into the pull-request | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: 'Install Node' | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16.x' | |
- name: 'Install Deps' | |
run: npm install | |
- name: 'Test' | |
run: npx vitest --coverage | |
- name: 'Report Coverage' | |
if: always() # Also generate the report if tests are failing | |
uses: davelosert/vitest-coverage-report-action@v2 |