Skip to content

Vitest-coverage-action-test #9

Vitest-coverage-action-test

Vitest-coverage-action-test #9

name: "Test"
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
permissions:
# Required to checkout the code
contents: read
steps:
- uses: actions/checkout@v4
- name: "Install Node"
uses: actions/setup-node@v4
with:
node-version: "18.x"
- name: "Install Deps"
run: npm install
- name: "Test"
run: npx vitest --coverage
- name: "Upload Coverage"
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage