Skip to content

Create GitHub actions/workflows #2

Create GitHub actions/workflows

Create GitHub actions/workflows #2

Workflow file for this run

name: Tests
on:
pull_request:
jobs:
vitest:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests
run: npx vitest --coverage
- name: Report coverage
if: always()
uses: davelosert/vitest-coverage-report-action@v2