diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index 37504472..49ec1d8e 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -154,8 +154,7 @@ jobs: env: CGO_ENABLED: 1 run: | - bash "scripts/go-test-coverage.sh" 2>&1 | tee backend/test-output.txt - exit "${PIPESTATUS[0]}" + bash "scripts/go-test-coverage.sh" 2>&1 | tee backend/test-output.txt; exit "${PIPESTATUS[0]}" - name: Go Test Summary if: always() @@ -232,11 +231,12 @@ jobs: PERF_MAX_MS_GETSTATUS_P95_PARALLEL: 1500ms PERF_MAX_MS_LISTDECISIONS_P95: 2000ms run: | + go test -run TestPerf -v ./internal/api/handlers -count=1 2>&1 | tee perf-output.txt; PERF_STATUS="${PIPESTATUS[0]}" { echo "## 🔍 Running performance assertions (TestPerf)" - go test -run TestPerf -v ./internal/api/handlers -count=1 | tee perf-output.txt + cat perf-output.txt } >> "$GITHUB_STEP_SUMMARY" - exit "${PIPESTATUS[0]}" + exit "$PERF_STATUS" frontend-quality: name: Frontend (React) @@ -298,8 +298,7 @@ jobs: id: frontend-tests working-directory: ${{ github.workspace }} run: | - bash scripts/frontend-test-coverage.sh 2>&1 | tee frontend/test-output.txt - exit "${PIPESTATUS[0]}" + bash scripts/frontend-test-coverage.sh 2>&1 | tee frontend/test-output.txt; exit "${PIPESTATUS[0]}" - name: Frontend Test Summary if: always()