From 785681f10082029bbf90fc225e6ad112f46d5082 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Sat, 29 Jun 2024 14:50:04 +0000 Subject: [PATCH] ci lint: Allow ShellCheck to test source-d scripts. As the scripts 'utils/run-tests.sh' and 'utils/setup_test_container.sh' use some scripts as function libraries, this change forces shellcheck to also verify those scripts. --- .github/workflows/lint.yml | 2 ++ .pre-commit-config.yaml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cec6196c..3eb9305f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -88,3 +88,5 @@ jobs: fetch-depth: 1 - name: Run ShellCheck uses: ludeeus/action-shellcheck@master + env: + SHELLCHECK_OPTS: -x diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 82bfbcd7..23fa16ca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -54,4 +54,7 @@ repos: name: ShellCheck language: system entry: shellcheck - files: \.sh$ + args: ['-x'] + files: > + \.sh$ + utils/sh*$ -- GitLab