ci: enforce minimum 85% code coverage in gitlab-ci pest test job

This commit is contained in:
Jérémy Munsch 2026-09-16 12:12:32 +02:00
parent c3a7277ad1
commit 9b6fbcceda
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4

View file

@ -73,7 +73,7 @@ pest:
script:
- rm -f "$JUNIT_REPORT" "$TEXT_REPORT" "$COVERAGE_REPORT"
- touch "$TEXT_REPORT"
- bash -c 'composer run-script test:coverage 2>&1 | tee "$TEXT_REPORT"; status=${PIPESTATUS[0]}; exit $status'
- bash -c 'composer run-script test:coverage -- --min=85 2>&1 | tee "$TEXT_REPORT"; status=${PIPESTATUS[0]}; exit $status'
- cat "$TEXT_REPORT"
- if [ -f "$COVERAGE_REPORT" ]; then echo "Coverage report generated $COVERAGE_REPORT"; else echo "No coverage report found"; fi
artifacts: