Skip to content

Commit 11dfcec

Browse files
committed
chore: update linter, dependencies, and CI
1 parent a4fd949 commit 11dfcec

File tree

7 files changed

+9
-29
lines changed

7 files changed

+9
-29
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,21 @@ name: Build and test
33
on: [push, pull_request]
44

55
env:
6-
GOLANGCI_LINT_VERSION: v1.54.2
6+
GOLANGCI_LINT_VERSION: v1.59.1
77

88
jobs:
99
build:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
1313
go-version: [stable, oldstable]
1414

1515
steps:
16-
- name: Set up Go ${{ matrix.go-version }}
17-
uses: actions/setup-go@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-go@v5
1818
with:
1919
go-version: ${{ matrix.go-version }}
2020

21-
- name: Check out code
22-
uses: actions/checkout@v2
23-
24-
- name: Cache Go modules
25-
uses: actions/cache@v3
26-
with:
27-
path: |
28-
~/pkg/mod
29-
~/.cache/go-build
30-
key: ${{ runner.os }}-${{ matrix.go-version }}-go-${{ hashFiles('**/go.sum') }}
31-
restore-keys: ${{ runner.os }}-${{ matrix.go-version }}-go-
32-
3321
- name: Download and check dependencies
3422
run: |
3523
go mod tidy

.golangci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
run:
22
timeout: 5m
3-
skip-files: [ ]
4-
skip-dirs: [ ]
53

64
linters-settings:
75
govet:
@@ -73,7 +71,7 @@ linters:
7371
- gocyclo
7472
- godot
7573
- godox
76-
- goerr113
74+
- err113
7775
- gofmt
7876
- gofumpt
7977
- goheader
@@ -111,7 +109,7 @@ linters:
111109

112110
issues:
113111
exclude-use-default: false
114-
max-per-linter: 0
112+
max-issues-per-linter: 0
115113
max-same-issues: 0
116114
exclude: [ ]
117115
exclude-rules:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.19
55
require (
66
github.com/kvtools/valkeyrie v1.0.0
77
github.com/redis/go-redis/v9 v9.2.1
8-
github.com/stretchr/testify v1.8.4
8+
github.com/stretchr/testify v1.9.0
99
)
1010

1111
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
1616
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1717
github.com/redis/go-redis/v9 v9.2.1 h1:WlYJg71ODF0dVspZZCpYmoF1+U1Jjk9Rwd7pq6QmlCg=
1818
github.com/redis/go-redis/v9 v9.2.1/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M=
19-
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
20-
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
19+
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
20+
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
2121
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2222
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
2323
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

script/docker-compose-auth.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.9"
2-
31
# when running test local, you can specify the image version using the env var REDIS_VERSION.
42
# Example: REDIS_VERSION=7.0.5 make
53

script/docker-compose-sentinel.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.9"
2-
31
# when running test local, you can specify the image version using the env var REDIS_VERSION.
42
# Example: REDIS_VERSION=7.0.5 make
53

script/docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.9"
2-
31
# when running test local, you can specify the image version using the env var REDIS_VERSION.
42
# Example: REDIS_VERSION=7.0.5 make
53

0 commit comments

Comments
 (0)