-
Notifications
You must be signed in to change notification settings - Fork 14
41 lines (38 loc) · 1.27 KB
/
reviewdog.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Workflow https://github.com/marketplace/actions/run-shellcheck-with-reviewdog
name: Review Dog
on:
push:
pull_request:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: shellcheck github-check
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-check # Change reporter.
pattern: "*.sh" # Optional.
exclude: "./.git/*" # Optional.
shellcheck_flags: --external-sources
#level: info
#shellcheck_flags: --severity=style
shellcheck_pr:
#if: github.event_name == 'pull_request'
name: shellcheck pull request
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: shellcheck github-pr-review
uses: reviewdog/action-shellcheck@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
pattern: "*.sh" # Optional.
exclude: "./.git/*" # Optional.
shellcheck_flags: --external-sources