Skip to content

feat: add unit test runners on pr #1

feat: add unit test runners on pr

feat: add unit test runners on pr #1

Workflow file for this run

name: "Run unit tests"
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
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"
uses: davelosert/vitest-coverage-report-action@v2