1
1
name : " ReviewDog workflow"
2
+ env :
3
+ GOLANGCI_LINT_VERSION : " v1.62.0"
2
4
on :
3
5
push :
4
6
branches :
@@ -17,15 +19,15 @@ jobs:
17
19
- name : Make libsodium.a
18
20
run : sudo mv /usr/bin/go /usr/bin/go.bak && make crypto/libs/linux/amd64/lib/libsodium.a && sudo mv /usr/bin/go.bak /usr/bin/go
19
21
- name : reviewdog-golangci-lint
20
- uses : reviewdog/action-golangci-lint@v2.6.2
22
+ uses : reviewdog/action-golangci-lint@v2.7.0
21
23
with :
22
24
go_version_file : go.mod
23
- golangci_lint_version : " v1.62.0 "
25
+ golangci_lint_version : ${{ env.GOLANGCI_LINT_VERSION }}
24
26
golangci_lint_flags : " -c .golangci.yml --allow-parallel-runners"
25
27
reporter : " github-pr-check"
26
28
tool_name : " Lint Errors"
27
29
level : " error"
28
- fail_on_error : true
30
+ fail_level : any
29
31
filter_mode : " nofilter"
30
32
# Non-Blocking Warnings Section
31
33
reviewdog-warnings :
@@ -56,20 +58,20 @@ jobs:
56
58
57
59
with :
58
60
path : cicdtmp/golangci-lint/golangci-lint-cgo
59
- key : cicd-golangci-lint-cgo-v0.0.2 -${{ env.GO_VERSION }}
61
+ key : cicd-golangci-lint-cgo-v0.0.3 -${{ env.GO_VERSION }}-${{ env.GOLANGCI_LINT_VERSION }}
60
62
61
63
- name : Build custom golangci-lint with CGO_ENABLED
62
64
if : steps.cache-golangci-lint.outputs.cache-hit != 'true'
63
65
run : |
64
66
cd cicdtmp/golangci-lint
65
67
git clone https://github.com/golangci/golangci-lint.git .
66
- git checkout tags/v1.62.0
68
+ git checkout tags/${GOLANGCI_LINT_VERSION}
67
69
CGO_ENABLED=true go build -trimpath -o golangci-lint-cgo ./cmd/golangci-lint
68
70
./golangci-lint-cgo --version
69
71
cd ../../
70
72
- name : Install reviewdog
71
73
run : |
72
- curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/v0.20.2 /install.sh | sh -s -- v0.20.2
74
+ curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/v0.20.3 /install.sh | sh -s -- v0.20.3
73
75
reviewdog --version
74
76
- name : Build custom linters
75
77
run : |
92
94
cat temp_golangci-lint-cgo.txt | reviewdog \
93
95
-f=golangci-lint \
94
96
-name="Lint Warnings" \
95
- -reporter=github-check \
97
+ -reporter=github-pr- check \
96
98
-filter-mode=added \
97
- -fail-on-error=true \
99
+ -fail-level=any \
98
100
-level=warning
99
101
- name : Slack Notification
100
102
env :
@@ -107,11 +109,11 @@ jobs:
107
109
steps :
108
110
- uses : actions/checkout@v4
109
111
- name : shellcheck
110
- uses : reviewdog/action-shellcheck@v1
112
+ uses : reviewdog/action-shellcheck@v1.28.0
111
113
with :
112
114
github_token : ${{ secrets.GITHUB_TOKEN }}
113
115
reporter : " github-pr-check"
114
116
shellcheck_flags : " -e SC2034,SC2046,SC2053,SC2207,SC2145 -S warning"
115
- fail_on_error : true
117
+ fail_level : any
116
118
path : |
117
119
test/scripts/e2e_subs
0 commit comments