Skip to content

Commit 41efe67

Browse files
committed
update golang/some setups
1 parent 0c3fceb commit 41efe67

File tree

4 files changed

+9
-39
lines changed

4 files changed

+9
-39
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fetch-depth: 2
3838

3939
- name: Set up Go
40-
uses: actions/setup-go@v4
40+
uses: actions/setup-go@v5
4141
with:
4242
go-version: stable
4343

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Check out the repo
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Set up QEMU
1717
uses: docker/setup-qemu-action@v2

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
steps:
99

1010
- name: Set up Go 1.24
11-
uses: actions/setup-go@v1
11+
uses: actions/setup-go@v5
1212
with:
1313
go-version: 1.24
1414
id: go

.github/workflows/golangci-lint.yml

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: golangci-lint
33
on:
44
push:
55
branches:
6-
- master
76
- main
7+
- master
88
pull_request:
99

1010
permissions:
@@ -17,41 +17,11 @@ jobs:
1717
name: lint
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v3
21-
- uses: actions/setup-go@v4
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-go@v5
2222
with:
23-
go-version: '1.24'
24-
cache: false
23+
go-version: stable
2524
- name: golangci-lint
26-
uses: golangci/golangci-lint-action@v3
25+
uses: golangci/golangci-lint-action@v6
2726
with:
28-
# Require: The version of golangci-lint to use.
29-
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
30-
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
31-
version: v1.60.1
32-
33-
# Optional: working directory, useful for monorepos
34-
# working-directory: somedir
35-
36-
# Optional: golangci-lint command line arguments.
37-
#
38-
# Note: By default, the `.golangci.yml` file should be at the root of the repository.
39-
# The location of the configuration file can be changed by using `--config=`
40-
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
41-
args: --timeout=3m --verbose
42-
43-
# Optional: show only new issues if it's a pull request. The default value is `false`.
44-
# only-new-issues: true
45-
46-
# Optional: if set to true, then all caching functionality will be completely disabled,
47-
# takes precedence over all other caching options.
48-
# skip-cache: true
49-
50-
# Optional: if set to true, then the action won't cache or restore ~/go/pkg.
51-
# skip-pkg-cache: true
52-
53-
# Optional: if set to true, then the action won't cache or restore ~/.cache/go-build.
54-
# skip-build-cache: true
55-
56-
# Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'.
57-
# install-mode: "goinstall"
27+
version: v1.64

0 commit comments

Comments
 (0)