-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.64 KB
/
Copy pathcli.yml
File metadata and controls
53 lines (43 loc) · 1.64 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: CLI
on:
pull_request:
push:
branches:
- main
jobs:
cli-tests:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Ensure jq is installed
run: |
command -v jq >/dev/null 2>&1 || brew install jq
- name: Ensure caddy is installed
run: |
command -v caddy >/dev/null 2>&1 || brew install caddy
- name: Guard against committing private / generated files
run: |
# Fail if anything machine-specific, generated, or non-public ever gets tracked.
# .gitignore stops accidental `git add`; this catches a file already committed.
forbidden=$(git ls-files | grep -E '(^|/)apps\.json$|^pids/|^logs/|^Caddyfile$|^dashboard\.html$|^\.claude/|(^|/)\.DS_Store$' || true)
# Only MenuBarApp/docs/ (the landing page) is public; app source is not part of this repo.
appsrc=$(git ls-files 'MenuBarApp/*' | grep -vE '^MenuBarApp/docs/' || true)
if [ -n "$forbidden$appsrc" ]; then
echo "::error::forbidden files are tracked in this public repo:"
printf '%s\n' "$forbidden" "$appsrc"
exit 1
fi
echo "repo hygiene OK"
- name: Syntax check CLI and tests
run: |
bash -n bin/devkit
bash -n install.sh
bash -n test/test_registry.sh
bash -n test/test_scan.sh
bash -n test/test_install.sh
- name: Run CLI integration suite
run: bash test/test_registry.sh
- name: Run scan suite
run: bash test/test_scan.sh
- name: Run installer smoke test
run: bash test/test_install.sh