Skip to content

Commit 059b920

Browse files
committed
chore(github): update test workflow
Set the latest golang versions and update the actions. Additionally was fixed the linter errors.
1 parent 5cba98f commit 059b920

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

.github/workflows/test.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -17,33 +17,36 @@ jobs:
1717
- '1.19.x'
1818
- '1.20.x'
1919
- '1.21.x'
20+
- '1.22.x'
21+
- '1.23.x'
2022
platform: [ubuntu-latest]
2123

2224
name: test
2325
runs-on: ${{ matrix.platform }}
2426

2527
steps:
2628
- name: checkout the code
27-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
2830

2931
- name: setup go
30-
uses: actions/setup-go@v3
32+
uses: actions/setup-go@v5
3133
with:
3234
go-version: ${{ matrix.go-version }}
3335

3436
- name: unshallow
3537
run: git fetch --prune --unshallow
3638

3739
- name: golanci-linter
38-
uses: golangci/golangci-lint-action@v3
40+
uses: golangci/golangci-lint-action@v6
3941
with:
40-
version: v1.54.2
42+
version: v1.60.3
4143

4244
- name: run unit tests
4345
run: make test
4446

4547
- name: upload code coverage
46-
uses: codecov/codecov-action@v3.1.4
48+
uses: codecov/codecov-action@v4
4749
if: contains(github.ref, 'main')
4850
with:
51+
token: ${{ secrets.CODECOV_TOKEN }}
4952
file: ./cover.out

charm_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func TestCharmLogWithSkipper(t *testing.T) {
6767
ec := reqCtx(t)
6868

6969
config := DefaultCharmLogConfig
70-
config.Skipper = func(c echo.Context) bool {
70+
config.Skipper = func(echo.Context) bool {
7171
return true
7272
}
7373

logrus_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func TestLogrusWithSkipper(t *testing.T) {
7070
ec := reqCtx(t)
7171

7272
config := DefaultLogrusConfig
73-
config.Skipper = func(c echo.Context) bool {
73+
config.Skipper = func(echo.Context) bool {
7474
return true
7575
}
7676

opencensus_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func TestOpenCensusWithSkipper(t *testing.T) {
2323
ec := reqCtx(t)
2424

2525
config := DefaultOpenCensusConfig
26-
config.Skipper = func(c echo.Context) bool {
26+
config.Skipper = func(echo.Context) bool {
2727
return true
2828
}
2929

zap_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func TestZapLogWithSkipper(t *testing.T) {
7272
ec := reqCtx(t)
7373

7474
config := DefaultZapLogConfig
75-
config.Skipper = func(c echo.Context) bool {
75+
config.Skipper = func(echo.Context) bool {
7676
return true
7777
}
7878

zerolog_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func TestZeroLogWithSkipper(t *testing.T) {
6969
ec := reqCtx(t)
7070

7171
config := DefaultZeroLogConfig
72-
config.Skipper = func(c echo.Context) bool {
72+
config.Skipper = func(echo.Context) bool {
7373
return true
7474
}
7575

0 commit comments

Comments
 (0)