diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml index 5faf4b7f6e..28fd097c00 100644 --- a/.github/workflows/ci-front.yaml +++ b/.github/workflows/ci-front.yaml @@ -197,10 +197,19 @@ jobs: tag: scope:frontend tasks: reset:env - name: Run ${{ matrix.task }} task + id: run-task uses: ./.github/actions/nx-affected with: tag: scope:frontend tasks: ${{ matrix.task }} + - name: Check for coverage threshold failure + if: always() && steps.run-task.outcome == 'failure' && matrix.task == 'test' + shell: bash + run: | + echo "::error::The test task failed. If no individual test is failing, this is likely a coverage threshold not being met." + echo "" + echo "To debug locally, run: npx nx run twenty-front:test:ci" + exit 1 - name: Save ${{ matrix.task }} cache uses: ./.github/actions/save-cache with: