Skip to content

Commit c0fb0e6

Browse files
authored
Merge pull request #315 from phansys/shellcheck
Lint shell scripts with ShellCheck
2 parents 99b196d + a6bb07d commit c0fb0e6

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Continuous Integration for shell scripts"
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- ".github/workflows/ci-shell-scripts.yml"
9+
- "bin/**"
10+
push:
11+
branches:
12+
- "*.*.x"
13+
paths:
14+
- ".github/workflows/ci-shell-scripts.yml"
15+
- "bin/**"
16+
schedule:
17+
- cron: "0 17 * * *"
18+
19+
jobs:
20+
lint-shell-scripts:
21+
name: "Lint shell scripts"
22+
23+
runs-on: "ubuntu-22.04"
24+
25+
steps:
26+
- name: "Checkout"
27+
uses: "actions/checkout@v3"
28+
29+
- name: "Lint shell scripts with ShellCheck"
30+
uses: "ludeeus/action-shellcheck@2.0.0"
31+
with:
32+
scandir: "./bin"
33+
check_together: "yes"

0 commit comments

Comments
 (0)