-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (45 loc) · 1.59 KB
/
Copy pathvalidate.yml
File metadata and controls
53 lines (45 loc) · 1.59 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: validate
on:
push:
branches: [main]
pull_request:
jobs:
dotfiles:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install validation tools
run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- name: Check shell syntax
run: |
bash -n install.sh
bash -n .config/rofi/scripts/launcher.sh
bash -n .config/hypr/scripts/lock.sh
bash -n .config/ranger/scope.sh
bash -n scripts/moonlit-doctor
- name: Run shellcheck
run: |
shellcheck install.sh
shellcheck .config/rofi/scripts/launcher.sh
shellcheck .config/hypr/scripts/lock.sh
shellcheck -e SC2034,SC2317 .config/ranger/scope.sh
shellcheck scripts/moonlit-doctor
- name: Validate XML
run: python3 -m xml.etree.ElementTree .config/Thunar/uca.xml
- name: Verify required files
run: |
test -f .config/quickshell/shell.qml
test -f .config/quickshell/bar/Bar.qml
test -f .config/hypr/hyprland.conf
test -f .config/rofi/config.rasi
test -f .local/share/icons/Moonlit-Terminal/index.theme
test -d .local/share/icons/Moonlit-Terminal/scalable
- name: Check for personal absolute paths
run: |
if git grep -n '/home/fiw' -- ':!README.md' ':!MANUAL-INSTALL.md' ':!assets/**' ':!.github/**' ':!scripts/moonlit-doctor'; then
echo "Found hardcoded /home/fiw path in tracked config files."
exit 1
fi