-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (35 loc) · 952 Bytes
/
shellcheck.yml
File metadata and controls
41 lines (35 loc) · 952 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
name: ShellCheck
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
shellcheck:
name: ShellCheck Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: '.'
severity: warning
format: gcc
env:
SHELLCHECK_OPTS: -e SC2034 -e SC1091
- name: Check script executability
run: |
if [ ! -x src/nm-hotspot ]; then
echo "Error: src/nm-hotspot is not executable"
exit 1
fi
echo "Script is executable"
- name: Verify installation scripts
run: |
if [ ! -f scripts/install.sh ] || [ ! -f scripts/uninstall.sh ]; then
echo "Error: Installation scripts missing"
exit 1
fi
echo "Installation scripts found"