From 865cba5f9af2fd4447883a7686936be3812c68bc Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Tue, 2 Dec 2025 19:34:33 +0100 Subject: [PATCH] ci: ignore exit code --- .github/workflows/ci.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2dcf02e..e035d5ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,16 +54,10 @@ jobs: - name: Analyze code run: | # Run flutter analyze - # Fails on any errors or warnings (info messages are allowed) - flutter analyze 2>&1 | tee analyze_output.txt + # Fails on errors or warnings only (info messages are allowed) + flutter analyze 2>&1 | tee analyze_output.txt || true - # Check the exit status - if [ ${PIPESTATUS[0]} -ne 0 ]; then - echo "❌ Analysis failed" - exit 1 - fi - - # Also verify no warnings or errors in output + # Check output for errors or warnings if grep -q "error •" analyze_output.txt; then echo "❌ Analysis failed with errors" exit 1 @@ -71,7 +65,7 @@ jobs: echo "⚠️ Analysis completed with warnings" exit 1 else - echo "✅ Analysis passed - no issues found!" + echo "✅ Analysis passed!" exit 0 fi