ci: apt-get update before installing inotify-tools for the watcher test
Without it the install fails on runners where shellcheck was preinstalled (no apt lists) and the watcher test silently SKIPs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
427246b886
commit
64ebfa6c3b
1 file changed
+6
-1
@@ -100,7 +100,12 @@ jobs:
|
|||||||
|
|
||||||
- name: ols htaccess watcher test (needs inotify-tools; skips if absent)
|
- name: ols htaccess watcher test (needs inotify-tools; skips if absent)
|
||||||
run: |
|
run: |
|
||||||
(apt-get install -y inotify-tools || sudo apt-get install -y inotify-tools) >/dev/null 2>&1 || true
|
# apt-get update first: the lists exist only if an earlier step had to
|
||||||
|
# install shellcheck; without them the install fails and the test SKIPs.
|
||||||
|
if ! command -v inotifywait >/dev/null 2>&1; then
|
||||||
|
( (apt-get update && apt-get install -y inotify-tools) ||
|
||||||
|
(sudo apt-get update && sudo apt-get install -y inotify-tools) ) >/dev/null 2>&1 || true
|
||||||
|
fi
|
||||||
./scripts/tests/ols-htaccess-watcher.test.sh
|
./scripts/tests/ols-htaccess-watcher.test.sh
|
||||||
|
|
||||||
- name: lsphp repo-version lookup test
|
- name: lsphp repo-version lookup test
|
||||||
|
|||||||
Reference in new issue
Block a user