Skip to content

Commit

Permalink
Merge pull request #16 from hiro08gh/add-coverage-report
Browse files Browse the repository at this point in the history
Add coverage command
  • Loading branch information
hiro08gh authored Sep 12, 2024
2 parents 6e7d6bd + bf94746 commit 58c8a35
Show file tree
Hide file tree
Showing 5 changed files with 726 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Vitest coverage test'
on:
pull_request:

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: 'Vitest run coverage test'
run: npx vitest --coverage.enabled true
- name: 'Report Coverage'
if: always()
uses: davelosert/vitest-coverage-report-action@v2
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
dist
coverage
Loading

0 comments on commit 58c8a35

Please sign in to comment.