mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-06 12:36:56 +00:00
feat(ui): unit tests coverage for PRs (#8974)
This commit is contained in:
parent
5ef7902e19
commit
35a87ac09c
8
.github/workflows/yarn-coverage.yml
vendored
8
.github/workflows/yarn-coverage.yml
vendored
@ -19,6 +19,7 @@ permissions:
|
||||
|
||||
env:
|
||||
UI_WORKING_DIRECTORY: openmetadata-ui/src/main/resources/ui
|
||||
UI_COVERAGE_DIRECTORY: openmetadata-ui/src/main/resources/ui/src/test/unit/coverage
|
||||
concurrency:
|
||||
group: yarn-coverage-${{ github.head_ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
@ -68,8 +69,13 @@ jobs:
|
||||
run: yarn install
|
||||
- name: Run Coverage
|
||||
working-directory: ${{ env.UI_WORKING_DIRECTORY }}
|
||||
run: yarn test:coverage
|
||||
run: yarn test:cov-summary
|
||||
id: yarn_coverage
|
||||
- name: Jest Coverage Comment
|
||||
uses: MishaKav/jest-coverage-comment@main
|
||||
with:
|
||||
hide-comment: true
|
||||
coverage-summary-path: ${{env.UI_COVERAGE_DIRECTORY}}/coverage-final.json
|
||||
- name: yarn add sonarqube-scanner
|
||||
working-directory: ${{ env.UI_WORKING_DIRECTORY }}
|
||||
run: npm install -g sonarqube-scanner
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user