Skip to content

Commit

Permalink
Merge pull request #592 from sassoftware/add-gh-actions
Browse files Browse the repository at this point in the history
adding github action to check shell code
  • Loading branch information
ceelias authored Dec 12, 2023
2 parents 26d9032 + 1d47b0c commit 605ca1a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: checkshell
on:
- pull_request
jobs:
sh-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run the sh-checker
uses: luizm/action-sh-checker@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SHELLCHECK_OPTS: -e SC1004 # exclude some shellcheck warnings.
SHFMT_OPTS: -s # arguments to shfmt.
with:
sh_checker_only_diff: true # only run against files that were updated
sh_checker_comment: true # include results as github comment

0 comments on commit 605ca1a

Please sign in to comment.