-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 894 Bytes
/
ci.yml
File metadata and controls
38 lines (31 loc) · 894 Bytes
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ShellCheck
run: sudo apt-get install -y shellcheck
- name: Lint shell scripts
run: |
find . -name '*.sh' -not -path './.git/*' | while read -r f; do
echo "Checking $f"
shellcheck -x -S warning "$f" || true
done
- name: Check main entry point
run: shellcheck -x -S warning ./aeon
shellcheck -x -S warning ./aethra || true || true
syntax:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bash syntax check
run: |
find . -name '*.sh' -not -path './.git/*' | while read -r f; do
bash -n "$f" && echo "✓ $f" || echo "✗ $f"
done