mirror of
https://github.com/rancher/cli.git
synced 2026-02-05 09:48:36 +01:00
[v2.13] Bump Go toolchain to 1.24.11 (#524)
* Bump Go toolchain to 1.24.11 * Migrate golangci-lint to v2 * Pin github actions' versions
This commit is contained in:
committed by
GitHub
parent
4584728f78
commit
f2aa75a29e
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -12,16 +12,18 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
cache: false
|
||||
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@v4
|
||||
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
|
||||
with:
|
||||
version: v2.7.1
|
||||
|
||||
- name: Validate Go modules
|
||||
run: ./scripts/validate
|
||||
@@ -51,7 +53,7 @@ jobs:
|
||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Docker Build
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
|
||||
with:
|
||||
push: false
|
||||
context: package
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
{
|
||||
"linters": {
|
||||
"enable": [
|
||||
"gofmt"
|
||||
]
|
||||
},
|
||||
"run": {
|
||||
"timeout": "10m"
|
||||
}
|
||||
"formatters": {
|
||||
"enable": [
|
||||
"gofmt"
|
||||
]
|
||||
},
|
||||
"linters": {
|
||||
"default": "none",
|
||||
"enable": [
|
||||
"govet",
|
||||
"ineffassign",
|
||||
"unused"
|
||||
]
|
||||
},
|
||||
"version": "2"
|
||||
}
|
||||
2
go.mod
2
go.mod
@@ -2,7 +2,7 @@ module github.com/rancher/cli
|
||||
|
||||
go 1.24.0
|
||||
|
||||
toolchain go1.24.9
|
||||
toolchain go1.24.11
|
||||
|
||||
replace (
|
||||
k8s.io/apiserver => k8s.io/apiserver v0.34.2
|
||||
|
||||
@@ -5,6 +5,5 @@ cd $(dirname $0)
|
||||
|
||||
./build
|
||||
./test
|
||||
./lint
|
||||
./validate
|
||||
./package
|
||||
|
||||
Reference in New Issue
Block a user