ci: add CI/CD workflow for Bash scripts linting
This commit is contained in:
parent
6f79187c43
commit
36516ca001
1 changed files with 22 additions and 0 deletions
22
hooks/.forgejo/workflows/ci.yml
Normal file
22
hooks/.forgejo/workflows/ci.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: Bash Scripts CI/CD
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main, master ]
|
||||
pull_request:
|
||||
branches: [ main, master ]
|
||||
workflow_dispatch:
|
||||
# Allows manual triggering
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install shellcheck
|
||||
run: sudo apt-get install -y shellcheck
|
||||
|
||||
- name: Lint bash scripts
|
||||
run: |
|
||||
find . -type f -name "*.sh" -exec shellcheck {} \;
|
Loading…
Add table
Add a link
Reference in a new issue