Skip to content

Commit 92a2b7a

Browse files
committed
ci/gha: run shellcheck before preparing the JSON matrix
- ensures bash sanity and future maintainability Signed-off-by: Ricardo Pardini <[email protected]>
1 parent 945cd6c commit 92a2b7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build-all-matrix.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ jobs:
5151
id: date_prep
5252
run: echo "created=$(date -u +'%Y%m%d-%H%M')" >> "${GITHUB_OUTPUT}"
5353

54+
- name: Run shellcheck # so fail fast in case of bash errors/warnings
55+
id: shellcheck
56+
run: bash build.sh shellcheck
57+
5458
- name: Run the matrix JSON preparation bash script
5559
id: prepare-matrix
5660
run: bash build.sh gha-matrix # This sets the output "kernels_json" & "lkcontainers_json" & "lk_hooks_json" internally

0 commit comments

Comments
 (0)