wip #25
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: | |
push: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [ 20 ] | |
permissions: | |
# Required to check out the code | |
contents: read | |
# Required to put a comment into the pull-request | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 7 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: 'Install Deps' | |
run: pnpm install --frozen-lockfile | |
- name: 'Test' | |
run: pnpm test | |
# - name: 'Test coverage' | |
# run: npx vitest --coverage | |
- name: 'Report Coverage' | |
if: always() # Also generate the report if tests are failing | |
uses: davelosert/vitest-coverage-report-action@v2 |