Skip to content

chore(ci): add vitest coverage action #864

chore(ci): add vitest coverage action

chore(ci): add vitest coverage action #864

Workflow file for this run

name: ci
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Volta
uses: volta-cli/action@v4.1.1
- name: Install dependencies
run: npm ci
- name: Lint codebase
run: npm run lint
- name: Test codebase
run: npm run test
cov:
runs-on: ubuntu-22.04
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
- name: Setup Volta
uses: volta-cli/action@v4.1.1
- name: Install dependencies
run: npm ci
- name: Enable Coverage
run: npm run test:cov
- name: Report Coverage
if: always()
uses: davelosert/vitest-coverage-report-action@v2.4.0