Some checks failed
Bash Scripts CI/CD / lint (pull_request) Failing after 4s
26 lines
689 B
YAML
26 lines
689 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/latest/download/shellcheck-latest.linux.x86_64.tar.xz
|
|
tar -xvf shellcheck-latest.linux.x86_64.tar.xz
|
|
sudo mv shellcheck /usr/local/bin
|
|
rm shellcheck-latest.linux.x86_64.tar.xz
|
|
|
|
- name: Lint bash scripts
|
|
run: |
|
|
find . -type f -name "*.sh" -print0 | xargs -0 shellcheck
|