ci: add Shell script linter #2
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
# Generated by Gabo (https://github.com/ashishb/gabo) | |
--- | |
# Run this locally with act - https://github.com/nektos/act | |
# act -j lintShellScript | |
name: Lint Shell scripts | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: [main, master] | |
paths: | |
- '**.sh' | |
- '**.bash' | |
- '.github/workflows/lint-shell-script.yaml' | |
pull_request: | |
branches: [main, master] | |
paths: | |
- '**.sh' | |
- '**.bash' | |
- '.github/workflows/lint-shell-script.yaml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lintShellScript: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run ShellCheck | |
uses: ludeeus/[email protected] |