Add shellcheck workflow
This commit is contained in:
parent
f0fd008e1d
commit
7d3219f584
24
.forgejo/workflows/shellcheck.yml
Normal file
24
.forgejo/workflows/shellcheck.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: Bash Linter
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '**/*.sh'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '**/*.sh'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Run ShellCheck
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
|
||||||
|
- name: Lint Bash Scripts
|
||||||
|
run: |
|
||||||
|
find . -name '*.sh' -print0 | xargs -0 shellcheck
|
||||||
|
|
Loading…
Reference in a new issue