Skip to content

Merge pull request #19 from Zakrok09/10-ci-continuous-integration-setup #3

Merge pull request #19 from Zakrok09/10-ci-continuous-integration-setup

Merge pull request #19 from Zakrok09/10-ci-continuous-integration-setup #3

name: Vitest Unit Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: 'Install Node'
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: 'Install Deps'
run: npm install
- name: 'Test'
run: npx vitest --coverage.enabled true
- name: 'Report Coverage'
if: always()
uses: davelosert/vitest-coverage-report-action@v2