Skip to content

Commit 7a593cc

Browse files
committed
ci: improve golangci-lint output
The patch adds a second golangci-lint run that prints errors in human-readable format [1]. 1. golangci/golangci-lint-action#119 Closes #231
1 parent fb93f9c commit 7a593cc

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/check.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
- uses: actions/checkout@v2
3838

3939
- name: golangci-lint
40-
uses: golangci/golangci-lint-action@v2
40+
uses: golangci/golangci-lint-action@v3
41+
continue-on-error: true
4142
with:
4243
# The suppression of the rule `errcheck` may be removed after adding
4344
# errors check in all methods calling EncodeXxx inside.
@@ -47,8 +48,17 @@ jobs:
4748
# The `//nolint` workaround was not the acceptable way of warnings suppression,
4849
# cause those comments get rendered in documentation by godoc.
4950
# See https://github.com/tarantool/go-tarantool/pull/160#discussion_r858608221
51+
#
52+
# The first run is for GitHub Actions error format.
5053
args: -E goimports -D errcheck
5154

55+
- name: golangci-lint
56+
uses: golangci/golangci-lint-action@v3
57+
with:
58+
# The second run is for human-readable error format with a file name
59+
# and a line number.
60+
args: --out-${NO_FUTURE}format colored-line-number -E goimports -D errcheck
61+
5262
codespell:
5363
runs-on: ubuntu-latest
5464
if: |

0 commit comments

Comments
 (0)