From ebfebb93fa712bc084664c8284ff65244b79b5a9 Mon Sep 17 00:00:00 2001 From: dotnetprog <24593889+dotnetprog@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:08:46 -0400 Subject: [PATCH 1/2] add codecov --- .github/workflows/ci-validation.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-validation.yml b/.github/workflows/ci-validation.yml index 4a38086..4f216db 100644 --- a/.github/workflows/ci-validation.yml +++ b/.github/workflows/ci-validation.yml @@ -33,7 +33,26 @@ jobs: name: JEST Tests # Name of the check run which will be created path: ${{ env.broadcastjsWorkingDirectory }}/*-junit.xml # Path to test results reporter: jest-junit # Format of test results - + - name: Publish Tests Results to CodeCov + uses: codecov/test-results-action@v1 + with: + fail_ci_if_error: true # optional (default = false) + disable_search: true + files: ./${{ env.broadcastjsWorkingDirectory }}/vitest-junit.xml # optional + flags: broadcast # optional + name: broadcastjs-tests # optional + token: ${{ secrets.CODECOV_TOKEN }} # required + verbose: true # optional (default = false) + - name: Publish Coverage to CodeCov + uses: codecov/codecov-action@v5 + with: + fail_ci_if_error: true # optional (default = false) + disable_search: true + files: ./${{ env.broadcastjsWorkingDirectory }}/coverage/icov.info # optional + flags: broadcast # optional + name: broadcastjs-coverage # optional + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true # optional (default = false) - name: Create destination folder run: mkdir -p ${{env.artifactlocation}} - name: Copy file outputjs into staging directory From e2df6ec8bc471ac17c1f6a9cea8e7e05ff37463e Mon Sep 17 00:00:00 2001 From: dotnetprog <24593889+dotnetprog@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:20:51 -0400 Subject: [PATCH 2/2] fix lcov typo --- .github/workflows/ci-validation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-validation.yml b/.github/workflows/ci-validation.yml index 4f216db..ae4b9f4 100644 --- a/.github/workflows/ci-validation.yml +++ b/.github/workflows/ci-validation.yml @@ -48,7 +48,7 @@ jobs: with: fail_ci_if_error: true # optional (default = false) disable_search: true - files: ./${{ env.broadcastjsWorkingDirectory }}/coverage/icov.info # optional + files: ./${{ env.broadcastjsWorkingDirectory }}/coverage/lcov.info # optional flags: broadcast # optional name: broadcastjs-coverage # optional token: ${{ secrets.CODECOV_TOKEN }}