Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/.golangci.yml → .github/.golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "2"

linters:
default: none
enable:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/backend_pr_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
go-version: '1.24'
cache-dependency-path: 'go.sum'
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
uses: golangci/golangci-lint-action@v6
with:
version: v2.1
version: v1.62
working-directory: .
args: --timeout 5m
args: --timeout 5m --config=.github/.golangci.yml

go-mod-check:
name: go mod check
Expand All @@ -38,7 +38,8 @@ jobs:
- name: Check go.mod formatting
working-directory: .
run: |
if ! go mod tidy --diff ; then
go mod tidy
if ! git diff --exit-code go.mod go.sum; then
echo "::error::go.mod or go.sum is not properly formatted. Please run 'go mod tidy' locally and commit the changes."
exit 1
fi
Expand Down
Loading