File tree Expand file tree Collapse file tree 5 files changed +77
-74
lines changed Expand file tree Collapse file tree 5 files changed +77
-74
lines changed Original file line number Diff line number Diff line change @@ -11,35 +11,32 @@ jobs:
11
11
name : Lint
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - uses : actions/checkout@v2
14
+ - name : Checkout code
15
+ uses : actions/checkout@v3
15
16
- name : Run golangci-lint
16
- uses : actions-contrib/golangci-lint@v1
17
+ uses : golangci/golangci-lint-action@v3
18
+ with :
19
+ version : latest
20
+ args : --timeout=30m
17
21
18
22
test :
19
23
name : Test
20
24
strategy :
21
25
matrix :
22
- go-version : [1.13.x, 1.14 .x, 1.15.x ]
26
+ go-version : [ 1.22 .x, 1.23.x ]
23
27
platform : [ubuntu-latest, macos-latest, windows-latest]
24
28
runs-on : ${{ matrix.platform }}
25
29
steps :
30
+ - name : Checkout code
31
+ uses : actions/checkout@v3
26
32
- name : Install Go
27
- uses : actions/setup-go@v1
33
+ uses : actions/setup-go@v4
28
34
with :
29
35
go-version : ${{ matrix.go-version }}
30
- - name : Checkout code
31
- uses : actions/checkout@v2
32
- - name : Run unit tests
33
- run : go test -v -race -coverprofile=coverage -covermode=atomic
36
+ - name : Run tests with coverage
37
+ run : go test -shuffle=on -v -race -coverprofile=coverage -covermode=atomic
34
38
- name : Upload coverage report to Codecov
35
- uses : codecov/codecov-action@v1.0.6
39
+ uses : codecov/codecov-action@v1.5.0
36
40
with :
37
41
file : ./coverage
38
42
flags : unittests
39
- - name : Cache downloaded modules
40
- uses : actions/cache@v1
41
- with :
42
- path : ~/go/pkg/mod
43
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
44
- restore-keys : |
45
- ${{ runner.os }}-go-
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,14 +11,15 @@ require (
11
11
github.com/cupcake/rdb v0.0.0-20161107195141-43ba34106c76 // indirect
12
12
github.com/edsrzf/mmap-go v1.0.0 // indirect
13
13
github.com/go-macaron/inject v0.0.0-20200308113650-138e5925c53b // indirect
14
- github.com/go-redis/redis/v8 v8.4.0
14
+ github.com/go-redis/redis/v8 v8.11.5
15
15
github.com/go-sql-driver/mysql v1.4.1
16
16
github.com/lib/pq v1.2.0
17
17
github.com/pkg/errors v0.9.1 // indirect
18
18
github.com/siddontang/go v0.0.0-20180604090527-bdc77568d726 // indirect
19
19
github.com/siddontang/ledisdb v0.0.0-20190202134119-8ceb77e66a92
20
20
github.com/siddontang/rdb v0.0.0-20150307021120-fc89ed2e418d // indirect
21
21
github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337
22
+ github.com/stretchr/testify v1.6.1 // indirect
22
23
github.com/unknwon/com v1.0.1
23
24
golang.org/x/crypto v0.0.0-20201124201722-c8d3bf9c5392 // indirect
24
25
google.golang.org/appengine v1.6.7 // indirect
You can’t perform that action at this time.
0 commit comments