File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change 55
55
- name : Run transaction Fuzzing check
56
56
run : make check-tx-fuzzing
57
57
58
+ shellcheck :
59
+ name : Shellcheck - ${{ matrix.os }}
60
+ runs-on : ${{ matrix.os }}
61
+ strategy :
62
+ matrix :
63
+ os : [ubuntu-latest]
64
+ steps :
65
+ - uses : actions/checkout@v4
66
+ - name : Install shellcheck
67
+ run : |
68
+ sudo apt update || true
69
+ sudo apt install -y shellcheck || true
70
+ - name : Run shellcheck
71
+ run : make lint-bash
72
+
58
73
hadolint :
59
74
name : Hadolint - ${{ matrix.os }}
60
75
runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -162,6 +162,16 @@ format-md: ## Format all markdown and MDX files to wrap at 80 characters
162
162
lint : # # Run linter (clippy)
163
163
cargo clippy --all-targets -- -D warnings --allow clippy::mutable_key_type
164
164
165
+ .PHONY : lint-bash
166
+ lint-bash : # # Check all shell scripts using shellcheck
167
+ @echo " Running shellcheck on shell scripts..."
168
+ @find . -name " *.sh" \
169
+ -not -path " */target/*" \
170
+ -not -path " */node_modules/*" \
171
+ -not -path " */website/docs/developers/scripts/setup/*" \
172
+ -print0 | xargs -0 shellcheck
173
+ @echo " Shellcheck completed successfully!"
174
+
165
175
.PHONY : lint-dockerfiles
166
176
lint-dockerfiles : # # Check all Dockerfiles using hadolint
167
177
@if [ " $$ GITHUB_ACTIONS" = " true" ]; then \
You can’t perform that action at this time.
0 commit comments