Skip to content

Commit 6a51609

Browse files
authored
Update go and golangci-lint (#33)
1 parent 3c3b3ba commit 6a51609

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import _ "github.com/bool64/dev" // Include development helpers to project.
2626
Add `Makefile` to your module with includes standard targets.
2727

2828
```Makefile
29-
#GOLANGCI_LINT_VERSION := "v1.44.2" # Optional configuration to pinpoint golangci-lint version.
29+
#GOLANGCI_LINT_VERSION := "v1.45.0" # Optional configuration to pinpoint golangci-lint version.
3030

3131
# The head of Makefile determines location of dev-go to include standard targets.
3232
GO ?= go

makefiles/base.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#GOLANGCI_LINT_VERSION := "v1.44.2" # Optional configuration to pinpoint golangci-lint version.
1+
#GOLANGCI_LINT_VERSION := "v1.45.0" # Optional configuration to pinpoint golangci-lint version.
22

33
# The head of Makefile determines location of dev-go to include standard targets.
44
GO ?= go

scripts/lint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
[ -z "$GO" ] && GO=go
4-
[ -z "$GOLANGCI_LINT_VERSION" ] && GOLANGCI_LINT_VERSION="v1.44.2"
4+
[ -z "$GOLANGCI_LINT_VERSION" ] && GOLANGCI_LINT_VERSION="v1.45.0"
55

66
# detecting GOPATH and removing trailing "/" if any
77
GOPATH="$(go env GOPATH)"

templates/github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
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.17.x
24+
GO_VERSION: 1.18.x
2525
jobs:
2626
bench:
2727
runs-on: ubuntu-latest

templates/github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v2
2323
- name: golangci-lint
24-
uses: golangci/golangci-lint-action@v3.0.0
24+
uses: golangci/golangci-lint-action@v3.1.0
2525
with:
2626
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
27-
version: v1.44.2
27+
version: v1.45.0
2828

2929
# Optional: working directory, useful for monorepos
3030
# working-directory: somedir

templates/github/workflows/gorelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99
cancel-in-progress: true
1010

1111
env:
12-
GO_VERSION: 1.17.x
12+
GO_VERSION: 1.18.x
1313
jobs:
1414
gorelease:
1515
runs-on: ubuntu-latest

templates/github/workflows/release-assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- created
99
env:
1010
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11-
GO_VERSION: 1.17.x
11+
GO_VERSION: 1.18.x
1212
jobs:
1313
build:
1414
name: Upload Release Assets

templates/github/workflows/test-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
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.17.x
19+
GO_VERSION: 1.18.x
2020
jobs:
2121
test:
2222
runs-on: ubuntu-latest

templates/github/workflows/test-unit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ concurrency:
1515
env:
1616
GO111MODULE: "on"
1717
RUN_BASE_COVERAGE: "on" # Runs test for PR base in case base test coverage is missing.
18-
COV_GO_VERSION: 1.17.x # Version of Go to collect coverage
18+
COV_GO_VERSION: 1.18.x # Version of Go to collect coverage
1919
jobs:
2020
test:
2121
strategy:
2222
matrix:
23-
go-version: [ 1.16.x, 1.17.x, tip ]
23+
go-version: [ 1.16.x, 1.17.x, 1.18.x, tip ]
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: Install Go stable

0 commit comments

Comments
 (0)