Skip to content

Commit

Permalink
Merge pull request #52 from mbta/mth-shellcheck
Browse files Browse the repository at this point in the history
ci: add shellcheck for shell scripts
  • Loading branch information
boringcactus authored Apr 26, 2024
2 parents 2f25aea + 83485c8 commit 648ecb8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ jobs:
- uses: actions/checkout@v4
- run: yamllint -f parsable .
chmod:
name: Ensure .sh files have chmod +x
name: Check shell scripts
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: find . -name '*.sh' \! -executable | (! grep .)
- name: shellcheck
run: find . -name '*.sh' | xargs shellcheck -S warning
- name: Ensure .sh files have chmod +x
run: find . -name '*.sh' \! -executable | (! grep .)

0 comments on commit 648ecb8

Please sign in to comment.