From 293bac401d9e2a729b5b082c659238314c029a23 Mon Sep 17 00:00:00 2001 From: saimedhi Date: Fri, 27 Sep 2024 15:47:28 -0700 Subject: [PATCH] Add Codecov for test coverage reporting - v4.5.0 uploader Signed-off-by: saimedhi --- .github/workflows/build-and-test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index f652c703..719e1d22 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -46,7 +46,7 @@ jobs: cd ./plugins/dashboards-flow-framework && whoami && yarn osd bootstrap && yarn build && yarn run test:jest --coverage" - name: Uploads coverage - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v3 with: verbose: true token: ${{ secrets.CODECOV_TOKEN }} @@ -103,7 +103,9 @@ jobs: cd OpenSearch-Dashboards/plugins/dashboards-flow-framework yarn run test:jest --coverage - name: Uploads coverage - uses: codecov/codecov-action@v4 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v3 + with: + verbose: true + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true