mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-06 13:39:41 +00:00
23954aa8bc
* ci: add shfmt * refact: shellcheck
35 lines
689 B
YAML
35 lines
689 B
YAML
name: Script Checks
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**/*.sh'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
shellcheck:
|
|
name: Shellcheck
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run ShellCheck
|
|
uses: reviewdog/action-shellcheck@v1
|
|
with:
|
|
reviewdog_flags: '-fail-level=any'
|
|
|
|
shfmt:
|
|
name: Shell Fomatting
|
|
runs-on: ubuntu-latest
|
|
needs: shellcheck
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run shfmt
|
|
uses: reviewdog/action-shfmt@v1
|
|
with:
|
|
shfmt_flags: '-i 4 -ci'
|
|
reviewdog_flags: '-fail-level=any'
|