Skip to content

Commit 80e4d2c

Browse files
[FSSDK-10437] jest coverage report job addition (#281)
* [FSSDK-10437] jest coverage report job addition * [FSSDK-10437] local script addition * [FSSDK-10437] job name and title adjustment * [FSSDK-10437] package manager & pre-requisite addition
1 parent 5daff74 commit 80e4d2c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/react.yml

+11
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ jobs:
2424
run: yarn install
2525
- name: Run tests
2626
run: yarn test
27+
28+
coverage:
29+
name: Jest Coverage Report
30+
runs-on: ubuntu-latest
31+
needs: [ unitTests ]
32+
steps:
33+
- uses: actions/checkout@v3
34+
- uses: ArtiomTr/jest-coverage-report-action@v2
35+
with:
36+
custom-title: 'Jest Coverage Report'
37+
package-manager: 'yarn'
2738

2839
integration_tests:
2940
name: Run integration tests

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"build:win": "(if exist dist rd /s/q dist) && node ./scripts/winbuild.js",
2828
"lint": "tsc --noEmit && eslint 'src/**/*.{js,ts,tsx}' --quiet --fix",
2929
"test": "jest --silent",
30+
"test-coverage": "jest --coverage --coverageReporters=\"text-summary\" --silent",
3031
"prepublishOnly": "npm run test && npm run build",
3132
"prepare": "npm run build && husky install"
3233
},

0 commit comments

Comments
 (0)