-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 990 Bytes
/
shellcheck.yml
File metadata and controls
43 lines (37 loc) · 990 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
39
40
41
42
43
name: ShellCheck
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: false
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: '.'
severity: warning
ignore_paths: |
profile/vim
.git
node_modules
ignore_names: |
p10k.zsh
env:
SHELLCHECK_OPTS: -e SC1090 -e SC1091
- name: Check install.sh specifically
run: |
shellcheck install.sh
- name: Check all shell config files
run: |
find profile/sh_config.d -name "*.sh" -exec shellcheck {} +
- name: Check all shell function files
run: |
find profile/sh_functions.d -name "*.bash" -exec shellcheck {} +