Skip to content

Feature/36 add integration and unit tests #28

Feature/36 add integration and unit tests

Feature/36 add integration and unit tests #28

Workflow file for this run

name: 'Run tests'
on:
push:
branches: ['main', 'develop']
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install deps
run: npm ci
- name: Run tests
run: npm run test:coverage
- name: "Report Coverage"
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
json-summary-path: coverage/coverage-summary.json
json-final-path: coverage/coverage-final.json