2023-03-27 04:27:32 +00:00
|
|
|
---
|
|
|
|
# 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: [master, main]
|
|
|
|
paths:
|
|
|
|
- '**.sh'
|
|
|
|
- '**.bash'
|
|
|
|
- '.github/workflows/lint-shell-script.yaml'
|
|
|
|
pull_request:
|
|
|
|
branches: [master, main]
|
|
|
|
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 code
|
2024-02-11 23:22:26 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-03-27 04:27:32 +00:00
|
|
|
|
|
|
|
- name: Run ShellCheck
|
|
|
|
uses: ludeeus/action-shellcheck@2.0.0
|