Skip to content

Commit 82096b6

Browse files
Copilotrajbos
andcommitted
Fix smoketest CSS bundle test broken pipe issue
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent 5be247e commit 82096b6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/deploy-to-pages.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@ jobs:
140140
fi
141141
142142
echo "Testing CSS bundle at: $CSS_URL"
143-
CSS_CONTENT=$(curl -fsSL "$CSS_URL" | head -c 500 || true)
144-
if echo "$CSS_CONTENT" | grep -q "body\|html\|\."; then
143+
CSS_CONTENT=$(curl -fsSL "$CSS_URL" || exit 1)
144+
145+
if echo "$CSS_CONTENT" | head -c 2000 | grep -q "body\|html\|\."; then
145146
echo "✅ CSS bundle is accessible and contains expected styles"
146147
else
147148
echo "❌ CSS bundle is not accessible or doesn't contain expected styles"

0 commit comments

Comments
 (0)