Add shellcheck to CI

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2023-10-25 15:17:22 -03:00
parent 98b7f38d22
commit 5d6d2f512b
No known key found for this signature in database
GPG Key ID: 6A16FD38AFC89CC8

27
.github/workflows/shellcheck.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: ShellCheck
on:
push:
paths:
- 'scripts/**'
pull_request:
paths:
- 'scripts/**'
permissions:
contents: read
jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run ShellCheck
uses: reviewdog/action-shellcheck@v1
with:
path: scripts
check_all_files_with_shebangs: true
fail_on_error: true