-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (26 loc) · 833 Bytes
/
validate.yml
File metadata and controls
31 lines (26 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Validate
on:
push:
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate shell scripts
run: |
bash -n bootstrap.sh
while IFS= read -r -d '' f; do
bash -n "$f"
done < <(find scripts -type f -name '*.sh' -print0)
- name: Validate media path usage
run: |
# Automation scripts must resolve MEDIA_DIR from env/.env, not hardcode $HOME/Media.
! rg -n '\$HOME/Media' scripts/auto-heal.sh scripts/install-auto-heal.sh
- name: Validate compose config
run: |
cp .env.example .env
docker compose --profile autoupdate config >/dev/null
docker compose --profile jellyfin config >/dev/null
rm .env