aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/lint-shell.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/lint-shell.yaml')
-rw-r--r--.github/workflows/lint-shell.yaml27
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/lint-shell.yaml b/.github/workflows/lint-shell.yaml
new file mode 100644
index 0000000..68d1c0c
--- /dev/null
+++ b/.github/workflows/lint-shell.yaml
@@ -0,0 +1,27 @@
+name: lint-shell
+
+on:
+ pull_request:
+ paths:
+ - '.github/workflows/lint-shell.yaml'
+ - 'scripts/**'
+ push:
+ branches:
+ - master
+
+concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
+ cancel-in-progress: true
+
+jobs:
+ shellcheck:
+ name: ShellCheck
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
+
+ - name: Run ShellCheck
+ uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0
+ with:
+ scandir: './scripts'