-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 991 Bytes
/
shellcheck.yml
File metadata and controls
42 lines (37 loc) · 991 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
name: Shell Script Linting
on:
push:
branches: [ main, dev ]
paths:
- '**.sh'
- '.github/workflows/shellcheck.yml'
pull_request:
branches: [ main, dev ]
paths:
- '**.sh'
- '.github/workflows/shellcheck.yml'
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
severity: error
scandir: '.'
format: tty
ignore_paths: |
node_modules
.git
env:
SHELLCHECK_OPTS: -e SC1091 -e SC2034 -e SC2155 -e SC2046 -e SC2044
- name: Report Results
if: failure()
run: |
echo "::error::ShellCheck found issues in shell scripts"
echo "Please fix the issues reported above"
echo "See CONTRIBUTING.md for shell script style guidelines"
exit 1