Skip to content

Change to Rollup for builds, Vitest for testing #44

Change to Rollup for builds, Vitest for testing

Change to Rollup for builds, Vitest for testing #44

Workflow file for this run

name: 'Run tests'
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Install Node'
uses: actions/setup-node@v2
with:
node-version: '20.x'
- name: 'Install dependencies'
run: npm install
- name: 'Run unit tests'
run: npm run coverage
- name: 'Report coverage'
if: ${{ always() }} # Generate report if tests are failing, too
uses: davelosert/vitest-coverage-report-action@v1