Skip to content

Commit 8bb5a46

Browse files
committed
Tighten CI assertions: check update exit code, verify legacy chromium absence
1 parent ffafa54 commit 8bb5a46

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/test-install.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ jobs:
115115
echo "::error::Chrome Headless Shell not detected by quarto check after redirect install"
116116
exit 1
117117
fi
118-
if echo "$output" | grep -Fq "outdated"; then
119-
echo "::error::Unexpected 'outdated' warning — legacy chromium should have been auto-removed"
118+
if echo "$output" | grep -Fq "Chromium (deprecated)"; then
119+
echo "::error::Legacy Chromium still present — afterInstall should have removed it"
120120
exit 1
121121
fi
122122
@@ -126,17 +126,26 @@ jobs:
126126
run: |
127127
set +e
128128
output=$(quarto update tool chromium --no-prompt 2>&1)
129+
exit_code=$?
129130
set -e
130131
echo "$output"
131132
if echo "$output" | grep -Fq "is deprecated"; then
132133
echo "deprecation-warning=true" >> "$GITHUB_OUTPUT"
133134
fi
135+
if [ "$exit_code" -eq 0 ]; then
136+
echo "update-successful=true" >> "$GITHUB_OUTPUT"
137+
fi
134138
135-
- name: Assert update deprecation warning was shown
139+
- name: Assert update deprecation warning was shown and succeeded
136140
shell: bash
137141
run: |
138142
if [ "${{ steps.update-chromium.outputs.deprecation-warning }}" != "true" ]; then
139143
echo "::error::Deprecation warning missing from 'quarto update tool chromium' output"
140144
exit 1
141145
fi
142146
echo "Update deprecation warning found"
147+
if [ "${{ steps.update-chromium.outputs.update-successful }}" != "true" ]; then
148+
echo "::error::Update command failed — redirect to chrome-headless-shell may have failed"
149+
exit 1
150+
fi
151+
echo "Update succeeded via redirect"

0 commit comments

Comments
 (0)