From 73590f1ccd96b96c39321e439b1bc32f507c3fa2 Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Fri, 20 Sep 2024 10:21:33 -0700 Subject: [PATCH] fix: upload codecov report as a separate workflow step (#1476) --- .github/workflows/validate.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 7b27c640cc..5feb86ad88 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -18,8 +18,26 @@ jobs: with: node-version: ${{ matrix.node }} - run: make validate.ci + - name: Archive code coverage results + uses: actions/upload-artifact@v4 + with: + name: code-coverage-report-${{ matrix.node }} + # When we're only using Node 20, replace the line above with the following: + # name: code-coverage-report + path: coverage/*.* + coverage: + runs-on: ubuntu-latest + needs: tests + steps: + - uses: actions/checkout@v3 + - name: Download code coverage results + uses: actions/download-artifact@v4 + with: + name: code-coverage-report-20 + # When we're only using Node 20, replace the line above with the following: + # name: code-coverage-report - name: Upload coverage uses: codecov/codecov-action@v4 with: fail_ci_if_error: true - token: ${{ secrets.CODECOV_TOKEN }} + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file