add shellcheck to ci

This commit is contained in:
meisam 2023-10-18 17:40:03 +02:00
parent cbb32d375b
commit 502c08ce54

20
.github/workflows/shellcheck.yml vendored Normal file
View File

@ -0,0 +1,20 @@
---
name: Shellcheck
on: [push, pull_request]
permissions:
contents: read
jobs:
shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
env:
LANG: C.UTF-8
steps:
- uses: actions/checkout@v4
- name: Install shellcheck
run: sudo apt update && sudo apt install -y shellcheck && shellcheck --version
- name: Check shell scripts
run: shellcheck -x -P "SCRIPTDIR"/utils --severity=error testssl.sh