From 9f6d7fb2c21a4556aaecf83ada365c251cc29f0a Mon Sep 17 00:00:00 2001 From: Andrea Lamparelli Date: Sat, 1 Jul 2023 23:44:25 +0200 Subject: [PATCH] build: add test coverage workflow --- .github/workflows/coverage.yml | 15 +++++++++++++++ .gitignore | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/coverage.yml 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/