Skip to content

Commit 1305a49

Browse files
authored
refactor(github/workflows): 忽略gofumpt检查 (#33)
1 parent 65ca869 commit 1305a49

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
with:
3535
go-version: "1.24.2"
3636
- name: golangci-lint
37-
uses: golangci/golangci-lint-action@v7
37+
uses: golangci/golangci-lint-action@v8
3838
with:
39-
version: v2.0
39+
version: v2.4.0
40+
args: --timeout=10m
4041
only-new-issues: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ logs
3030
.log
3131
.sys
3232
**/local.yaml
33+
.tool-versions

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,4 @@ linters:
2929

3030
formatters:
3131
enable:
32-
- gofumpt
3332
- goimports

internal/test/provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (s *ProviderTestSuite) TearDownTest() {
5858
fmt.Println(err)
5959
}
6060
// 清空 Redis 缓存
61-
s.TestApp.Rdb.FlushDB(ctx)
61+
s.Rdb.FlushDB(ctx)
6262
}
6363

6464
func (s *ProviderTestSuite) TestProviderSave() {

0 commit comments

Comments
 (0)