mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 21:15:45 +00:00
af4a193b43
Implement workflow to to run static analysis and linting of all shell scripts by using shfmt and shellcheck. Fixes: #5396 Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
21 lines
409 B
YAML
21 lines
409 B
YAML
name: Shell scripts check
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
sh-checker:
|
|
name: Check shell scripts
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Run the shell script checkers
|
|
uses: luizm/action-sh-checker@master
|
|
env:
|
|
SHFMT_OPTS: -i 4 -d
|
|
SHELLCHECK_OPTS: -x --source-path scripts
|