Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FSSDK-10437] jest coverage report job addition #281

Merged
merged 4 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ jobs:
run: yarn install
- name: Run tests
run: yarn test

coverage:
name: Jest Coverage Report
mikechu-optimizely marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest
needs: [ unitTests ]
steps:
- uses: actions/checkout@v3
- uses: ArtiomTr/jest-coverage-report-action@v2
with:
custom-title: 'Jest Coverage Report'
mikechu-optimizely marked this conversation as resolved.
Show resolved Hide resolved
package-manager: 'yarn'

integration_tests:
name: Run integration tests
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"build:win": "(if exist dist rd /s/q dist) && node ./scripts/winbuild.js",
"lint": "tsc --noEmit && eslint 'src/**/*.{js,ts,tsx}' --quiet --fix",
"test": "jest --silent",
"test-coverage": "jest --coverage --coverageReporters=\"text-summary\" --silent",
"prepublishOnly": "npm run test && npm run build",
"prepare": "npm run build && husky install"
},
Expand Down
Loading