From c78f5258491d54da487a5a12735f2958e3c702f4 Mon Sep 17 00:00:00 2001 From: Ray Lee Date: Wed, 1 May 2024 20:05:20 -0400 Subject: [PATCH] Upload coverage artifact to codecov. --- .github/workflows/ci-js.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-js.yml b/.github/workflows/ci-js.yml index 6b65c82..c0fa103 100644 --- a/.github/workflows/ci-js.yml +++ b/.github/workflows/ci-js.yml @@ -10,5 +10,20 @@ jobs: check: name: Check code uses: collectionspace/.github/.github/workflows/check-js.yml@main - secrets: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + + upload-coverage: + name: Upload coverage report + needs: check + runs-on: ubuntu-latest + + steps: + - name: Download coverage report artifact + uses: actions/download-artifact@v4 + with: + name: coverage + + - name: Upload to codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + verbose: true