diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 3bc0ebe7eb..c5a81707f6 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -150,3 +150,21 @@ jobs: if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }} uses: PHPCSStandards/.github/.github/workflows/reusable-remark.yml@main + + shellcheck: + name: 'ShellCheck' + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up problem matcher + uses: lumaxis/shellcheck-problem-matchers@v2 + with: + format: gcc + + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@2.0.0 + with: + format: gcc diff --git a/.shellcheckrc b/.shellcheckrc new file mode 100644 index 0000000000..12a6cd5c3a --- /dev/null +++ b/.shellcheckrc @@ -0,0 +1,5 @@ +shell=bash +color=always + +external-sources=false +source-path=/tests/EndToEnd