From 8fecd8df0971d4946ecbf36b3d9f917acc882de0 Mon Sep 17 00:00:00 2001 From: Julian Weng Date: Sun, 22 Sep 2024 00:20:51 -0400 Subject: [PATCH] Replace node-specific codecov upload with Github Action (#20) --- .github/workflows/react.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/react.yaml b/.github/workflows/react.yaml index 5961dc2..9336ea7 100644 --- a/.github/workflows/react.yaml +++ b/.github/workflows/react.yaml @@ -59,10 +59,13 @@ jobs: cd ${{ inputs.path }} yarn test - name: Upload Code Coverage - run: |- - ROOT=$(pwd) - cd ${{ inputs.path }} - yarn run codecov -p $ROOT -F frtype=local,src=/tmp/.buildx-cacheontend + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + directory: ${{ inputs.path }} + fail_ci_if_error: true + name: codecov-umbrella + verbose: true container: image: node:${{ inputs.nodeVersion }} publish-frontend: