ShellCheck #374
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ShellCheck | |
# Trigger the workflow on push or pull request | |
on: | |
push: | |
paths: | |
- 'zram-config' | |
- '**.bash' | |
- '.github/workflows/shellcheck-action.yml' | |
pull_request: | |
paths: | |
- 'zram-config' | |
- '**.bash' | |
- '.github/workflows/shellcheck-action.yml' | |
jobs: | |
shellcheck: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup environment | |
run: sudo -E bash -c set | |
- name: "ShellCheck tests/*.bash" | |
run: | | |
echo "ShellCheck zram-config..." | |
if shellcheck -x -s bash tests/*.bash; then echo "OK"; else echo "FAILED"; exit 1; fi | |
shell: bash | |
- name: "ShellCheck install.bash" | |
run: | | |
echo "ShellCheck install.bash..." | |
if shellcheck -x -s bash install.bash; then echo "OK"; else echo "FAILED"; exit 1; fi | |
shell: bash | |
- name: "ShellCheck update.bash" | |
run: | | |
echo "ShellCheck update.bash..." | |
if shellcheck -x -s bash update.bash; then echo "OK"; else echo "FAILED"; exit 1; fi | |
shell: bash | |
- name: "ShellCheck uninstall.bash" | |
run: | | |
echo "ShellCheck uninstall.bash..." | |
if shellcheck -x -s bash uninstall.bash; then echo "OK"; else echo "FAILED"; exit 1; fi | |
shell: bash | |
- name: "ShellCheck zram-config" | |
run: | | |
echo "ShellCheck zram-config..." | |
if shellcheck -x -s bash zram-config; then echo "OK"; else echo "FAILED"; exit 1; fi | |
shell: bash |