File tree Expand file tree Collapse file tree
templates/github/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import _ "github.com/bool64/dev" // Include development helpers to project.
2626Add ` Makefile ` to your module with includes standard targets.
2727
2828``` 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.
3030
3131# The head of Makefile determines location of dev-go to include standard targets.
3232GO ?= 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.
22
33# The head of Makefile determines location of dev-go to include standard targets.
44GO ?= go
Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ linters:
3333 - ireturn
3434 - exhaustruct
3535 - nonamedreturns
36- - structcheck
3736 - testableexamples
3837 - dupword
3938 - depguard
@@ -49,17 +48,18 @@ issues:
4948 - gomnd
5049 - mnd
5150 - goconst
52- - goerr113
5351 - noctx
5452 - funlen
5553 - dupl
5654 - structcheck
5755 - unused
5856 - unparam
59- - nosnakecase
6057 path : " _test.go"
6158 - linters :
6259 - errcheck # Error checking omitted for brevity.
6360 - gosec
6461 path : " example_"
62+ - linters :
63+ - revive
64+ text : " unused-parameter: parameter"
6565
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33[ -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 "
55
66# detecting GOPATH and removing trailing "/" if any
77GOPATH=" $( go env GOPATH) "
Original file line number Diff line number Diff line change 2121 GO111MODULE : " on"
2222 CACHE_BENCHMARK : " off" # Enables benchmark result reuse between runs, may skew latency results.
2323 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
2525jobs :
2626 bench :
2727 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ jobs:
2121 steps :
2222 - uses : actions/setup-go@v3
2323 with :
24- go-version : 1.22 .x
24+ go-version : 1.23 .x
2525 - uses : actions/checkout@v2
2626 - name : golangci-lint
27- uses : golangci/golangci-lint-action@v6.0.1
27+ uses : golangci/golangci-lint-action@v6.1.0
2828 with :
2929 # 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
3131
3232 # Optional: working directory, useful for monorepos
3333 # working-directory: somedir
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ concurrency:
99 cancel-in-progress : true
1010
1111env :
12- GO_VERSION : 1.22 .x
12+ GO_VERSION : 1.23 .x
1313jobs :
1414 gorelease :
1515 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 88 - created
99env :
1010 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
11- GO_VERSION : 1.22 .x
11+ GO_VERSION : 1.23 .x
1212jobs :
1313 build :
1414 name : Upload Release Assets
Original file line number Diff line number Diff line change 1616 GO111MODULE : " on"
1717 RUN_BASE_COVERAGE : " on" # Runs test for PR base in case base test coverage is missing.
1818 DOCKER_COMPOSE_FILE : ./docker-compose.yml
19- GO_VERSION : 1.22 .x
19+ GO_VERSION : 1.23 .x
2020 TARGET_DELTA_COV : 90 # Target coverage of changed lines, in percents
2121jobs :
2222 test :
Original file line number Diff line number Diff line change 2121 test :
2222 strategy :
2323 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 ]
2525 runs-on : ubuntu-latest
2626 steps :
2727 - name : Install Go stable
You can’t perform that action at this time.
0 commit comments