2021-01-13 11:56:35 +01:00
|
|
|
---
|
|
|
|
name: Run shell-linter
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
jobs:
|
2021-01-22 14:45:01 +01:00
|
|
|
shellfmt:
|
2021-01-13 11:56:35 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
2023-09-05 17:07:12 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-01-13 11:56:35 +01:00
|
|
|
- name: Run the sh-checker
|
2024-09-17 00:28:53 +02:00
|
|
|
uses: luizm/action-sh-checker@v0.9.0
|
2021-01-13 11:56:35 +01:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional if sh_checker_comment is false.
|
|
|
|
SHFMT_OPTS: -l -i 4 -w # Optional: pass arguments to shfmt.
|
|
|
|
with:
|
2021-01-22 14:45:01 +01:00
|
|
|
sh_checker_shellcheck_disable: true
|
2021-01-13 11:56:35 +01:00
|
|
|
sh_checker_comment: true
|
|
|
|
sh_checker_exclude: |
|
|
|
|
src/
|
|
|
|
debian/postrm
|
2021-01-22 14:45:01 +01:00
|
|
|
shellcheck:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repo
|
2023-09-05 17:07:12 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-01-22 14:45:01 +01:00
|
|
|
- name: Run shellcheck
|
|
|
|
run: ./shellcheck/docker_build_and_run_shellcheck.sh
|