Skip to content

Commit 39b7bc7

Browse files
Adds ShellCheck linting for pull requests
1 parent 4f3511f commit 39b7bc7

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint Pull Request
2+
on:
3+
pull_request:
4+
types: [opened, edited]
5+
branches: [ main ]
6+
7+
jobs:
8+
shellcheck:
9+
name: ShellCheck
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out repository
14+
uses: actions/checkout@v4
15+
16+
- name: Run ShellCheck
17+
uses: reviewdog/action-shellcheck@v1
18+
with:
19+
# This token is required to post comments to pull requests.
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
# Use 'github-pr-review' to post annotations directly on the PR.
23+
# Use 'github-check' to report results as a check.
24+
reporter: github-pr-review
25+
26+
# This is the minimum severity level to report.
27+
# Options: info, warning, error
28+
level: warning

0 commit comments

Comments
 (0)