File tree Expand file tree Collapse file tree 5 files changed +1248
-1920
lines changed
Expand file tree Collapse file tree 5 files changed +1248
-1920
lines changed Original file line number Diff line number Diff line change 3131 - name : Install dependencies
3232 run : pnpm install
3333
34- - name : Run tests
35- run : pnpm test
34+ - name : ' Run unit tests'
35+ run : npx vitest --coverage.enabled true
36+
37+ - name : ' Report Coverage'
38+ # Set if: always() to also generate the report if tests are failing
39+ # Only works if you set `reportOnFailure: true` in your vite config as specified above
40+ if : always()
41+ uses : davelosert/vitest-coverage-report-action@v2
3642
3743 semantic-release :
3844 needs : build-and-test
Original file line number Diff line number Diff line change 3131 - name : Install dependencies
3232 run : pnpm install
3333
34- - name : Run tests
35- run : pnpm test
34+ - name : ' Run unit tests'
35+ run : npx vitest --coverage.enabled true
36+
37+ - name : ' Report Coverage'
38+ # Set if: always() to also generate the report if tests are failing
39+ # Only works if you set `reportOnFailure: true` in your vite config as specified above
40+ if : always()
41+ uses : davelosert/vitest-coverage-report-action@v2
3642
3743 semantic-release :
3844 needs : build-and-test
Original file line number Diff line number Diff line change 2929 - name : Install dependencies
3030 run : pnpm install
3131
32- - name : Run tests
33- run : pnpm test
32+ - name : ' Run unit tests'
33+ run : npx vitest --coverage.enabled true
34+
35+ - name : ' Report Coverage'
36+ # Set if: always() to also generate the report if tests are failing
37+ # Only works if you set `reportOnFailure: true` in your vite config as specified above
38+ if : always()
39+ uses : davelosert/vitest-coverage-report-action@v2
3440
3541 semantic-release :
3642 needs : build-and-test
You can’t perform that action at this time.
0 commit comments