Some checks failed
Bash Scripts CI/CD / lint (pull_request) Failing after 5s
25 lines
635 B
YAML
25 lines
635 B
YAML
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: |
|
|
wget https://github.com/koalaman/shellcheck/releases/download/v0.9.4/shellcheck_0.9.4-1_amd64.deb
|
|
sudo apt-get install -y ./shellcheck_0.9.4-1_amd64.deb
|
|
rm shellcheck_0.9.4-1_amd64.deb
|
|
|
|
- name: Lint bash scripts
|
|
run: |
|
|
find . -type f -name "*.sh" -print0 | xargs -0 shellcheck
|