Skip to content

Commit c6bdfb6

Browse files
committed
GH Actions/basic QA: add shellcheck job
As this repo now contains a shell script to find & replace placeholders for output snippets in the wiki files with real output, let's also run a minimal QA check on the code of the shell script. Refs: * https://github.com/koalaman/shellcheck * https://github.com/koalaman/shellcheck/wiki
1 parent 737149d commit c6bdfb6

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/basic-qa.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,21 @@ jobs:
7878
- name: Fail the build when more spelling issues were found than expected
7979
if: ${{ always() && ( steps.spellcheck.outputs.number_of_issues != 5 || steps.spellcheck.outputs.number_of_files_with_issues != 3 ) }}
8080
run: exit 1
81+
82+
shellcheck:
83+
name: 'ShellCheck'
84+
runs-on: ubuntu-latest
85+
86+
steps:
87+
- name: Checkout code
88+
uses: actions/checkout@v4
89+
90+
- name: Set up problem matcher
91+
uses: lumaxis/shellcheck-problem-matchers@v2
92+
with:
93+
format: gcc
94+
95+
- name: Run ShellCheck
96+
uses: ludeeus/[email protected]
97+
with:
98+
format: gcc

.shellcheckrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
shell=bash
2+
color=always
3+
4+
external-sources=false
5+
source-path=/build
6+
7+
# Turn on all checks.
8+
enable=all

0 commit comments

Comments
 (0)