diff --git a/.github/workflows/ci-validation.yml b/.github/workflows/ci-validation.yml index 4a38086..ae4b9f4 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/lcov.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