Skip to content

Commit

Permalink
Add github action to shellcheck master on push and PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Mar 9, 2023
1 parent cdfe679 commit 00145be
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Shellcheck

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
shellcheck:
name: Check shell scripts
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y shellcheck
- name: shellcheck
run: |
git grep -l '^#!\(/bin/\|/usr/bin/env \)\(sh\|bash\|dash\|ksh\)' | xargs shellcheck

0 comments on commit 00145be

Please sign in to comment.