Skip to content

Commit fbe6b5f

Browse files
committed
Add quarto update chromium deprecation warning test
1 parent bb974c8 commit fbe6b5f

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/test-install.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,30 @@ jobs:
8585
echo "chromium-installed=true" >> "$GITHUB_OUTPUT"
8686
fi
8787
88-
- name: Assert deprecation warning was shown
88+
- name: Assert install deprecation warning was shown
8989
if: steps.install-chromium.outputs.deprecation-warning != 'true'
9090
shell: bash
9191
run: |
9292
echo "::error::Deprecation warning missing from quarto install chromium output"
9393
exit 1
9494
95+
- name: Update chromium and capture result
96+
id: update-chromium
97+
shell: bash
98+
run: |
99+
output=$(quarto update chromium --no-prompt 2>&1) || true
100+
echo "$output"
101+
if echo "$output" | grep -q "deprecated"; then
102+
echo "deprecation-warning=true" >> "$GITHUB_OUTPUT"
103+
fi
104+
105+
- name: Assert update deprecation warning was shown
106+
if: steps.update-chromium.outputs.deprecation-warning != 'true'
107+
shell: bash
108+
run: |
109+
echo "::error::Deprecation warning missing from quarto update chromium output"
110+
exit 1
111+
95112
- name: Verify quarto check warns about outdated Chromium
96113
if: steps.install-chromium.outputs.chromium-installed == 'true'
97114
shell: bash

0 commit comments

Comments
 (0)