feat: added code coverage reporting (#9081)
* added code coverage reporting * fix issues * more cleanup * fix action configs * cleanup token debug * added comments to codecov.yml config --------- Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
parent
ca595ac7fb
commit
65a977cba2
4 changed files with 128 additions and 1 deletions
13
.github/workflows/jest_test.yml
vendored
13
.github/workflows/jest_test.yml
vendored
|
|
@ -2,6 +2,9 @@ name: Run Frontend Jest Unit Tests
|
|||
|
||||
on:
|
||||
workflow_call:
|
||||
secrets:
|
||||
CODECOV_TOKEN:
|
||||
required: false
|
||||
inputs:
|
||||
ref:
|
||||
description: "(Optional) ref to checkout"
|
||||
|
|
@ -65,6 +68,16 @@ jobs:
|
|||
junitxml-title: Unit Test Results
|
||||
junitxml-path: src/frontend/test-results/junit.xml
|
||||
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v5
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
files: src/frontend/coverage/lcov.info
|
||||
flags: frontend
|
||||
name: frontend-coverage
|
||||
fail_ci_if_error: false
|
||||
directory: src/frontend/coverage/
|
||||
|
||||
- name: Upload Coverage Reports
|
||||
uses: actions/upload-artifact@v4
|
||||
if: always()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue