Skip to content

Commit 69eb61a

Browse files
committed
fix: make CI validate expected no-runtime behavior
1 parent 282ee55 commit 69eb61a

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/validate.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: |
1616
bash -n fix-permissions.sh
1717
18-
- name: Smoke test audit mode
18+
- name: Smoke test no-runtime failure path
1919
run: |
2020
TMP_MEDIA="$(mktemp -d)"
2121
mkdir -p "$TMP_MEDIA/config/sonarr" "$TMP_MEDIA/Downloads" "$TMP_MEDIA/TV Shows"
@@ -36,4 +36,8 @@ jobs:
3636
PGID=$(id -g)
3737
MEDIA_DIR=$TMP_MEDIA
3838
EOF
39-
bash fix-permissions.sh --path "$TMP_MEDIA"
39+
if bash fix-permissions.sh --path "$TMP_MEDIA" >"$TMP_MEDIA/out.txt" 2>&1; then
40+
echo "Expected failure when no runtime is available in CI"
41+
exit 1
42+
fi
43+
grep -q "No Docker runtime found" "$TMP_MEDIA/out.txt"

0 commit comments

Comments
 (0)