Skip to content

chore: test cicd coverage #62

chore: test cicd coverage

chore: test cicd coverage #62

Workflow file for this run

name: Run Unit Tests
on:
pull_request:
permissions:
actions: write
checks: write
contents: write
deployments: write
id-token: write
issues: write
discussions: write
packages: write
pages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
jobs:
test:
runs-on: ubuntu-latest
permissions:
actions: write
checks: write
contents: write
deployments: write
id-token: write
issues: write
discussions: write
packages: write
pages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup Node.js environment
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8
with:
node-version: "20.x"
- name: Install dependencies
run: npm install
- name: Run tests
run: npx vitest run --coverage.enabled --coverage.provider=v8 --coverage.reporter=json-summary --coverage.reporter=json
- name: Report Coverage
uses: markwylde-deriv/vitest-coverage-report-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}