forked from mholt/archiver
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 1 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
# name of the action
name: reviewdog
# trigger on pull_request events
on:
pull_request:
# pipeline to execute
jobs:
diff-review:
runs-on: ubuntu-latest
container:
image: golang:1.16
steps:
- name: clone
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--config=.golangci.yml"
fail_on_error: true
filter_mode: diff_context
reporter: github-pr-review
full-review:
runs-on: ubuntu-latest
container:
image: golang:1.16
steps:
- name: clone
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: golangci-lint
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--config=.golangci.yml"
fail_on_error: false
filter_mode: nofilter