Skip to content

Commit 8200932

Browse files
authored
Merge pull request #1171 from PHPCSStandards/feature/ghactions-add-shellcheck
GH Actions/validate: add shellcheck job
2 parents 1ed2b9e + 3fabd68 commit 8200932

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)