ci: add shellcheck workflow, install/uninstall scripts

This commit is contained in:
2026-03-23 06:31:29 +00:00
parent 55b3d81610
commit 592d1db7d4
4 changed files with 76 additions and 21 deletions

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

@@ -0,0 +1,23 @@
name: ShellCheck
on:
push:
branches: [master]
pull_request:
branches: [master]
permissions:
contents: read
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ShellCheck
run: sudo apt-get install -y shellcheck
- name: Run ShellCheck on all hooks
run: |
shellcheck pre-commit commit-msg pre-push post-checkout post-commit post-merge