Skip to content

Commit d4b8f50

Browse files
committed
chore: update linter, dependencies, and CI
1 parent f3cd035 commit d4b8f50

File tree

5 files changed

+9
-25
lines changed

5 files changed

+9
-25
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.1
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:
@@ -74,7 +72,7 @@ linters:
7472
- gocyclo
7573
- godot
7674
- godox
77-
- goerr113
75+
- err113
7876
- gofmt
7977
- gofumpt
8078
- goheader
@@ -112,7 +110,7 @@ linters:
112110

113111
issues:
114112
exclude-use-default: false
115-
max-per-linter: 0
113+
max-issues-per-linter: 0
116114
max-same-issues: 0
117115
exclude: [ ]
118116
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/aws/aws-sdk-go v1.44.91
77
github.com/kvtools/valkeyrie v1.0.0
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
@@ -17,8 +17,8 @@ github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
1717
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
1818
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1919
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
20-
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
21-
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
20+
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
21+
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
2222
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
2323
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
2424
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

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 DYNAMODB_VERSION.
42
# Example: DYNAMODB_VERSION=1.18.0 make
53

0 commit comments

Comments
 (0)