diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml new file mode 100644 index 0000000..80182a7 --- /dev/null +++ b/.github/workflows/coverage.yml @@ -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 -- \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0ef820f..a32465f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,8 @@ test/**/_temp/**/* yarn.lock coverage/ test-report.xml +report.json .idea/ .vscode/ build/ -# dist/ \ No newline at end of file +# dist/