-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (87 loc) · 2.82 KB
/
lint.yml
File metadata and controls
93 lines (87 loc) · 2.82 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Lint Shell Scripts
on:
push:
branches: [main]
paths-ignore:
- '**.md'
- 'docs/**'
- 'README*'
- '.github/CODEOWNERS'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
- 'docs/**'
- 'README*'
- '.github/CODEOWNERS'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
shellcheck:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0
with:
scandir: '.'
severity: warning
ignore_paths: terminal-academy node_modules
syntax-check:
name: bash -n syntax check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Parse every shell script with bash -n
run: |
failed=0
while IFS= read -r -d '' f; do
if ! bash -n "$f" 2>&1; then
echo "::error file=$f::bash -n parse failed"
failed=1
fi
done < <(find . \
-type f -name "*.sh" \
-not -path "./.git/*" \
-not -path "./node_modules/*" \
-not -path "./terminal-academy/*" \
-print0)
if [ "$failed" -ne 0 ]; then
exit 1
fi
echo "All shell scripts parsed cleanly"
coverage-assertions:
name: Installer content coverage
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Assert step-5 advertises Vercel MCP (option 11)
run: |
if ! grep -q '11) Vercel' step-5/step-5-install.sh; then
echo "::error file=step-5/step-5-install.sh::Vercel MCP option 11 missing from step-5 menu"
exit 1
fi
if ! grep -q 'install_vercel' step-5/step-5-install.sh; then
echo "::error file=step-5/step-5-install.sh::install_vercel dispatch missing"
exit 1
fi
echo "step-5 Vercel MCP (option 11) coverage verified"
- name: Assert step-5 advertises core MCP suite
run: |
missing=0
for anchor in "Notion" "Granola" "n8n" "Morgen" "Motion" "Playwright" "Superhuman" "Vercel"; do
if ! grep -q "${anchor}" step-5/step-5-install.sh; then
echo "::error file=step-5/step-5-install.sh::step-5 missing MCP anchor: ${anchor}"
missing=1
fi
done
if [ "$missing" -ne 0 ]; then
exit 1
fi
echo "step-5 core MCP anchors all present"