From 4f903fa0ba19865e1a2d9172a45d33bd27094a44 Mon Sep 17 00:00:00 2001 From: "Abdullah." <125115953+mabdullahabaid@users.noreply.github.com> Date: Sat, 14 Feb 2026 14:16:49 +0500 Subject: [PATCH] fix: add explicit error hint for coverage threshold failures in frontend test step (#17937) --- .github/workflows/ci-front.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) 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: