Update shellcheck workflow

fix #34
This commit is contained in:
Thibault Serti
2021-01-22 14:45:01 +01:00
committed by GitHub
parent dce926a536
commit 6efefa07ac
2 changed files with 12 additions and 5 deletions

View File

@ -4,7 +4,7 @@ on:
- push
- pull_request
jobs:
sh-checker:
shellfmt:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
@ -13,10 +13,17 @@ jobs:
uses: luizm/action-sh-checker@v0.1.10
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional if sh_checker_comment is false.
SHELLCHECK_OPTS: --color=always --shell=bash -x --source-path=SCRIPTDIR # Optional: exclude some shellcheck warnings.
SHFMT_OPTS: -l -i 4 -w # Optional: pass arguments to shfmt.
with:
sh_checker_shellcheck_disable: true
sh_checker_comment: true
sh_checker_exclude: |
src/
debian/postrm
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Run shellcheck
run: ./shellcheck/docker_build_and_run_shellcheck.sh