Skip to content

Merge pull request #9 from patryk0493/add-vitest #4

Merge pull request #9 from patryk0493/add-vitest

Merge pull request #9 from patryk0493/add-vitest #4

Workflow file for this run

name: Runs All Unit tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Dependencies
run: yarn
- name: Install Svelte
run: yarn add svelte -P
- name: Execute Unit tests
run: yarn test:coverage
- name: "Report Coverage"
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2