Skip to content

Commit

Permalink
Merge pull request rook#15313 from obnoxxx/ci-extract-shellcheck
Browse files Browse the repository at this point in the history
Ci: refactor  a shellcheck make target out of the github ci  workflow
  • Loading branch information
BlaineEXE authored Jan 24, 2025
2 parents 763afca + 11a15d3 commit 00f04bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/shellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ jobs:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@00b27aa7cb85167568cb48a3838b75f4265f2bca # master
with:
severity: warning
check_together: 'yes'
disable_matcher: false
additional_files: build/reset build/sed-in-place
ignore: olm
format: gcc
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: install shellcheck
run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- name: Run ShellCheck
run: make shellcheck
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ yamllint:
pylint:
pylint $(shell find $(ROOT_DIR) -name '*.py') -E

.PHONY: shellcheck
shellcheck:
shellcheck --severity=warning --format=gcc --shell=bash $(shell find $(ROOT_DIR) -type f -name '*.sh') build/reset build/sed-in-place

gen.codegen: codegen
codegen: ${CODE_GENERATOR} ## Run code generators.
@build/codegen/codegen.sh
Expand Down

0 comments on commit 00f04bc

Please sign in to comment.