ci: Added linting workflow using shellcheck

This commit is contained in:
2026-06-25 22:03:50 +05:30
parent f8f41e4295
commit 6b0d07d70a
2 changed files with 68 additions and 0 deletions

31
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Lint
on:
push:
branches:
- main
- master
paths-ignore:
- '**.md'
- '.gitignore'
- 'docs/**'
pull_request:
branches:
- main
- master
paths-ignore:
- '**.md'
- '.gitignore'
- 'docs/**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Run ShellCheck
run: |
sudo apt-get update && sudo apt-get install -y shellcheck
find . -type f -name '*.sh' | xargs shellcheck