File tree Expand file tree Collapse file tree 10 files changed +14
-14
lines changed
templates/github/workflows Expand file tree Collapse file tree 10 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import _ "github.com/bool64/dev" // Include development helpers to project.
26
26
Add ` Makefile ` to your module with includes standard targets.
27
27
28
28
``` Makefile
29
- # GOLANGCI_LINT_VERSION := "v1.59.1 " # Optional configuration to pinpoint golangci-lint version.
29
+ # GOLANGCI_LINT_VERSION := "v1.61.0 " # Optional configuration to pinpoint golangci-lint version.
30
30
31
31
# The head of Makefile determines location of dev-go to include standard targets.
32
32
GO ?= go
Original file line number Diff line number Diff line change 1
- # GOLANGCI_LINT_VERSION := "v1.59.1 " # Optional configuration to pinpoint golangci-lint version.
1
+ # GOLANGCI_LINT_VERSION := "v1.61.0 " # Optional configuration to pinpoint golangci-lint version.
2
2
3
3
# The head of Makefile determines location of dev-go to include standard targets.
4
4
GO ?= go
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ linters:
33
33
- ireturn
34
34
- exhaustruct
35
35
- nonamedreturns
36
- - structcheck
37
36
- testableexamples
38
37
- dupword
39
38
- depguard
@@ -49,17 +48,18 @@ issues:
49
48
- gomnd
50
49
- mnd
51
50
- goconst
52
- - goerr113
53
51
- noctx
54
52
- funlen
55
53
- dupl
56
54
- structcheck
57
55
- unused
58
56
- unparam
59
- - nosnakecase
60
57
path : " _test.go"
61
58
- linters :
62
59
- errcheck # Error checking omitted for brevity.
63
60
- gosec
64
61
path : " example_"
62
+ - linters :
63
+ - revive
64
+ text : " unused-parameter: parameter"
65
65
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
[ -z " $GO " ] && GO=go
4
- [ -z " $GOLANGCI_LINT_VERSION " ] && GOLANGCI_LINT_VERSION=" v1.59.1 "
4
+ [ -z " $GOLANGCI_LINT_VERSION " ] && GOLANGCI_LINT_VERSION=" v1.61.0 "
5
5
6
6
# detecting GOPATH and removing trailing "/" if any
7
7
GOPATH=" $( go env GOPATH) "
Original file line number Diff line number Diff line change 21
21
GO111MODULE : " on"
22
22
CACHE_BENCHMARK : " off" # Enables benchmark result reuse between runs, may skew latency results.
23
23
RUN_BASE_BENCHMARK : " on" # Runs benchmark for PR base in case benchmark result is missing.
24
- GO_VERSION : 1.22 .x
24
+ GO_VERSION : 1.23 .x
25
25
jobs :
26
26
bench :
27
27
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ jobs:
21
21
steps :
22
22
- uses : actions/setup-go@v3
23
23
with :
24
- go-version : 1.22 .x
24
+ go-version : 1.23 .x
25
25
- uses : actions/checkout@v2
26
26
- name : golangci-lint
27
- uses : golangci/golangci-lint-action@v6.0.1
27
+ uses : golangci/golangci-lint-action@v6.1.0
28
28
with :
29
29
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
30
- version : v1.59.1
30
+ version : v1.61.0
31
31
32
32
# Optional: working directory, useful for monorepos
33
33
# working-directory: somedir
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ concurrency:
9
9
cancel-in-progress : true
10
10
11
11
env :
12
- GO_VERSION : 1.22 .x
12
+ GO_VERSION : 1.23 .x
13
13
jobs :
14
14
gorelease :
15
15
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 8
8
- created
9
9
env :
10
10
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
11
- GO_VERSION : 1.22 .x
11
+ GO_VERSION : 1.23 .x
12
12
jobs :
13
13
build :
14
14
name : Upload Release Assets
Original file line number Diff line number Diff line change 16
16
GO111MODULE : " on"
17
17
RUN_BASE_COVERAGE : " on" # Runs test for PR base in case base test coverage is missing.
18
18
DOCKER_COMPOSE_FILE : ./docker-compose.yml
19
- GO_VERSION : 1.22 .x
19
+ GO_VERSION : 1.23 .x
20
20
TARGET_DELTA_COV : 90 # Target coverage of changed lines, in percents
21
21
jobs :
22
22
test :
Original file line number Diff line number Diff line change 21
21
test :
22
22
strategy :
23
23
matrix :
24
- go-version : [ 1.20 .x, 1.21 .x, 1.22 .x ]
24
+ go-version : [ 1.21 .x, 1.22 .x, 1.23 .x ]
25
25
runs-on : ubuntu-latest
26
26
steps :
27
27
- name : Install Go stable
You can’t perform that action at this time.
0 commit comments