Skip to content

The open alternative to Salesforce, designed for AI.

fix: add explicit error hint for coverage threshold failures in frontend test step (#17937)

Abdullah.4f903fa0ba19
diff --git a/.github/workflows/ci-front.yaml b/.github/workflows/ci-front.yaml
index 5faf4b7f6ee..28fd097c009 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: