build: add test coverage workflow

This commit is contained in:
Andrea Lamparelli 2023-07-01 23:44:25 +02:00
parent 8a007941d1
commit 9f6d7fb2c2
2 changed files with 17 additions and 1 deletions

15
.github/workflows/coverage.yml vendored Normal file
View file

@ -0,0 +1,15 @@
name: 'test coverage on pull request'
on:
pull_request_target:
branches:
- main
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ArtiomTr/jest-coverage-report-action@v2
with:
test-script: npm test --

1
.gitignore vendored
View file

@ -6,6 +6,7 @@ test/**/_temp/**/*
yarn.lock yarn.lock
coverage/ coverage/
test-report.xml test-report.xml
report.json
.idea/ .idea/
.vscode/ .vscode/
build/ build/