Skip to content

Commit

Permalink
👷 Add shellcheck for pre-commit and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbarton90 committed Nov 8, 2023
1 parent 430805a commit c9aaa50
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: shellcheck

on:
- push

jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run shellcheck on gh-clean-notifications
run: shellcheck gh-clean-notifications
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
repos:
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.9.0
hooks:
- id: shellcheck
# args: ["--severity=warning"] # Optionally only show errors and warnings

0 comments on commit c9aaa50

Please sign in to comment.