Skip to content

Commit

Permalink
👷 Add shellcheck to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbarton90 committed Nov 8, 2023
1 parent 32d267b commit 86db817
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: shellcheck

on:
- push

jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install shellcheck
run: apt-get install shellcheck -y
- name: run shellcheck
run: shellcheck gh-clean-notifications
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
repos:
- repo: https://github.com/syntaqx/git-hooks
rev: v0.0.18
- 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 86db817

Please sign in to comment.