diff --git a/.github/workflows/api-server.yml b/.github/workflows/api-server.yml index 0549c42eb..698fc23d2 100644 --- a/.github/workflows/api-server.yml +++ b/.github/workflows/api-server.yml @@ -39,6 +39,9 @@ jobs: pnpm run test:cov -v ../../.venv/bin/python -m coverage xml - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: flags: api-server + fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/rmf-dashboard-framework.yml b/.github/workflows/rmf-dashboard-framework.yml index 4c462ba1b..438cdc471 100644 --- a/.github/workflows/rmf-dashboard-framework.yml +++ b/.github/workflows/rmf-dashboard-framework.yml @@ -39,6 +39,9 @@ jobs: - name: unit test run: pnpm run test:coverage - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v4 with: flags: rmf-dashboard-framework + fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/codecov.yml b/codecov.yml index b139ad2d4..51b74ac10 100644 --- a/codecov.yml +++ b/codecov.yml @@ -5,11 +5,7 @@ coverage: flags: dashboard: paths: - - packages/dashboard - carryforward: true - react-components: - paths: - - packages/react-components + - packages/rmf-dashboard-framework carryforward: true api-server: paths: