-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (28 loc) · 782 Bytes
/
lint.yml
File metadata and controls
34 lines (28 loc) · 782 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
name: Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run ShellCheck on root scripts
run: |
shellcheck --severity=error ssc.sh generate-manifest.sh install.sh
- name: Run ShellCheck on examples/
run: |
find examples -name "*.sh" -print0 | xargs -0 shellcheck --severity=error
syntax-check:
name: Bash Syntax
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Validate Bash syntax
run: |
find . -name "*.sh" -not -path "./.git/*" -print0 | xargs -0 -I {} bash -n {}