-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.54 KB
/
ci.yml
File metadata and controls
63 lines (54 loc) · 1.54 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
59
60
61
62
63
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-installer:
name: Lint Install Script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: '.'
severity: warning
test-install-macos:
name: Test Install (macOS)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Run installer in dry-run mode
run: |
# Verify the script is valid bash
bash -n install.sh
echo "✓ install.sh syntax OK"
- name: Check config files exist
run: |
for f in config/AGENTS.md config/SOUL.md config/BOOTSTRAP.md config/TOOLS.md config/USER.md config/IDENTITY.md; do
if [[ ! -f "$f" ]]; then
echo "✗ Missing: $f"
exit 1
fi
echo "✓ $f exists"
done
test-install-linux:
name: Test Install (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run installer in dry-run mode
run: |
bash -n install.sh
echo "✓ install.sh syntax OK"
- name: Check config files exist
run: |
for f in config/AGENTS.md config/SOUL.md config/BOOTSTRAP.md config/TOOLS.md config/USER.md config/IDENTITY.md; do
if [[ ! -f "$f" ]]; then
echo "✗ Missing: $f"
exit 1
fi
echo "✓ $f exists"
done