mirror of
https://github.com/aljazceru/omakub.git
synced 2026-01-31 01:44:23 +01:00
Merge pull request #70 from anavarre/shellcheck
Add Shellcheck support via GitHub Actions
This commit is contained in:
27
.github/workflows/shellcheck.yml
vendored
Normal file
27
.github/workflows/shellcheck.yml
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Run ShellCheck
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*' # Run on all branches
|
||||
pull_request:
|
||||
branches:
|
||||
- '*' # Run on all branches
|
||||
|
||||
jobs:
|
||||
shellcheck:
|
||||
name: Run ShellCheck
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install ShellCheck
|
||||
run: sudo apt-get install -y shellcheck
|
||||
|
||||
- name: Run ShellCheck
|
||||
run: |
|
||||
# Find all shell scripts and run shellcheck
|
||||
find . -name "*.sh" -print0 | xargs -0 shellcheck
|
||||
|
||||
Reference in New Issue
Block a user