Skip to content

Commit 3fabd68

Browse files
committed
GH Actions/validate: add shellcheck job
As this repo now contains bash scripts for the end-to-end tests, let's also run a minimal QA check on the code of the shell scripts. Refs: * https://github.com/koalaman/shellcheck * https://github.com/koalaman/shellcheck/wiki
1 parent 1ed2b9e commit 3fabd68

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/workflows/validate.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,21 @@ jobs:
150150
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
151151

152152
uses: PHPCSStandards/.github/.github/workflows/reusable-remark.yml@main
153+
154+
shellcheck:
155+
name: 'ShellCheck'
156+
runs-on: ubuntu-latest
157+
158+
steps:
159+
- name: Checkout code
160+
uses: actions/checkout@v4
161+
162+
- name: Set up problem matcher
163+
uses: lumaxis/shellcheck-problem-matchers@v2
164+
with:
165+
format: gcc
166+
167+
- name: Run ShellCheck
168+
uses: ludeeus/[email protected]
169+
with:
170+
format: gcc

.shellcheckrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
shell=bash
2+
color=always
3+
4+
external-sources=false
5+
source-path=/tests/EndToEnd

0 commit comments

Comments
 (0)