mirror of
https://github.com/taigrr/hooks.git
synced 2026-04-02 03:18:55 -07:00
ci: add shellcheck workflow, install/uninstall scripts
This commit is contained in:
23
.github/workflows/shellcheck.yml
vendored
Normal file
23
.github/workflows/shellcheck.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user