Skip to content

Commit a4f0fdf

Browse files
authored
Use actions/setup-go@v3 (#36)
* Use actions/setup-go@v3 * Bump golangci-lint version
1 parent d070ef5 commit a4f0fdf

File tree

9 files changed

+12
-9
lines changed

9 files changed

+12
-9
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.45.0" # Optional configuration to pinpoint golangci-lint version.
29+
#GOLANGCI_LINT_VERSION := "v1.45.2" # 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.45.0" # Optional configuration to pinpoint golangci-lint version.
1+
#GOLANGCI_LINT_VERSION := "v1.45.2" # 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.45.0"
4+
[ -z "$GOLANGCI_LINT_VERSION" ] && GOLANGCI_LINT_VERSION="v1.45.2"
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
@@ -28,7 +28,7 @@ jobs:
2828
steps:
2929
- name: Install Go stable
3030
if: env.GO_VERSION != 'tip'
31-
uses: actions/setup-go@v2
31+
uses: actions/setup-go@v3
3232
with:
3333
go-version: ${{ env.GO_VERSION }}
3434
- name: Install Go tip

templates/github/workflows/golangci-lint.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ jobs:
1919
name: golangci-lint
2020
runs-on: ubuntu-latest
2121
steps:
22+
- uses: actions/setup-go@v3
23+
with:
24+
go-version: 1.18.x
2225
- uses: actions/checkout@v2
2326
- name: golangci-lint
2427
uses: golangci/[email protected]
2528
with:
2629
# 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.45.0
30+
version: v1.45.2
2831

2932
# Optional: working directory, useful for monorepos
3033
# working-directory: somedir

templates/github/workflows/gorelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: Install Go stable
1818
if: env.GO_VERSION != 'tip'
19-
uses: actions/setup-go@v2
19+
uses: actions/setup-go@v3
2020
with:
2121
go-version: ${{ env.GO_VERSION }}
2222
- name: Install Go tip

templates/github/workflows/release-assets.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: Install Go stable
1818
if: env.GO_VERSION != 'tip'
19-
uses: actions/setup-go@v2
19+
uses: actions/setup-go@v3
2020
with:
2121
go-version: ${{ env.GO_VERSION }}
2222
- name: Install Go tip

templates/github/workflows/test-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- name: Install Go stable
2525
if: env.GO_VERSION != 'tip'
26-
uses: actions/setup-go@v2
26+
uses: actions/setup-go@v3
2727
with:
2828
go-version: ${{ env.GO_VERSION }}
2929
- name: Install Go tip

templates/github/workflows/test-unit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
steps:
2626
- name: Install Go stable
2727
if: matrix.go-version != 'tip'
28-
uses: actions/setup-go@v2
28+
uses: actions/setup-go@v3
2929
with:
3030
go-version: ${{ matrix.go-version }}
3131
- name: Install Go tip

0 commit comments

Comments
 (0)