Skip to content

Commit

Permalink
Enhance Cypress E2E test logging in GitHub Actions workflow; added cu…
Browse files Browse the repository at this point in the history
…rrent test progress
  • Loading branch information
rustyjux committed Dec 20, 2024
1 parent e964a72 commit afea353
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/aps-cypress-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,16 @@ jobs:
docker compose down
break
else
echo "Waiting for Cypress to Complete E2E Tests....."
sleep 1m
echo "Current Test Progress:"
docker logs cypress-e2e 2>&1 | grep -E "Running:|✓|×" | tail -n 5
# Get failure count from the most recent logs
FAILURES=$(docker logs cypress-e2e 2>&1 | grep -c "×" || true)
if [ $FAILURES -gt 0 ]; then
echo "❌ Current failure count: $FAILURES"
fi
sleep 30s
fi
done
Expand Down

0 comments on commit afea353

Please sign in to comment.