We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 282ee55 commit 69eb61aCopy full SHA for 69eb61a
1 file changed
.github/workflows/validate.yml
@@ -15,7 +15,7 @@ jobs:
15
run: |
16
bash -n fix-permissions.sh
17
18
- - name: Smoke test audit mode
+ - name: Smoke test no-runtime failure path
19
20
TMP_MEDIA="$(mktemp -d)"
21
mkdir -p "$TMP_MEDIA/config/sonarr" "$TMP_MEDIA/Downloads" "$TMP_MEDIA/TV Shows"
@@ -36,4 +36,8 @@ jobs:
36
PGID=$(id -g)
37
MEDIA_DIR=$TMP_MEDIA
38
EOF
39
- bash fix-permissions.sh --path "$TMP_MEDIA"
+ 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