-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (47 loc) · 1.27 KB
/
Copy pathtest.yml
File metadata and controls
58 lines (47 loc) · 1.27 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
54
55
56
57
58
name: Test
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: "./lib"
additional_files: "faber install.sh"
severity: warning
syntax-check:
name: Bash Syntax Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Bash Syntax
run: |
bash -n faber
bash -n install.sh
for file in lib/*.sh; do
bash -n "$file"
done
test-ubuntu:
name: Test Installation on Ubuntu 24.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Test Installation (Dry Run)
run: |
# This would be a dry-run test
# Full installation test would require a VM
chmod +x install.sh faber
echo "Installation script syntax check passed"
- name: Test CLI Help
run: |
chmod +x faber
# Note: This will fail without root, but checks basic syntax
./faber --help || true
echo "CLI help check completed"