Skip to content

Commit 3da5b6d

Browse files
committed
upgrade to go1.22 and general housekeeping
Signed-off-by: cpanato <[email protected]>
1 parent 0c72e8d commit 3da5b6d

File tree

7 files changed

+25
-19
lines changed

7 files changed

+25
-19
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright 2023 The OpenVEX Authors
22
# SPDX-License-Identifier: Apache-2.0
33

4+
---
45
version: 2
56
updates:
67
- package-ecosystem: "github-actions"
@@ -10,9 +11,19 @@ updates:
1011
# Run every weekday
1112
interval: "daily"
1213
open-pull-requests-limit: 10
14+
groups:
15+
all:
16+
update-types:
17+
- "minor"
18+
- "patch"
1319

1420
- package-ecosystem: gomod
1521
directory: "/"
1622
schedule:
1723
interval: "daily"
1824
open-pull-requests-limit: 10
25+
groups:
26+
all:
27+
update-types:
28+
- "minor"
29+
- "patch"

.github/workflows/ci-build-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
2121
with:
22-
go-version: "1.21"
22+
go-version: "1.22"
2323
check-latest: true
2424
cache: true
2525

@@ -35,7 +35,7 @@ jobs:
3535

3636
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
3737
with:
38-
go-version: "1.21"
38+
go-version: "1.22"
3939
check-latest: true
4040
cache: true
4141

.github/workflows/release.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ jobs:
1717

1818
steps:
1919
- name: Install publish-release
20-
uses: kubernetes-sigs/release-actions/setup-publish-release@841d76a188a7c121231a863572e27012805715a2 # main
20+
uses: kubernetes-sigs/release-actions/setup-publish-release@841d76a188a7c121231a863572e27012805715a2 # v0.1.4
2121

2222
- name: Publish Release
23-
uses: kubernetes-sigs/release-actions/publish-release@841d76a188a7c121231a863572e27012805715a2 # main
23+
uses: kubernetes-sigs/release-actions/publish-release@841d76a188a7c121231a863572e27012805715a2 # v0.1.4
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-

.github/workflows/verify.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
1717
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
1818
with:
19-
go-version: 1.21
19+
go-version: "1.22"
2020
check-latest: true
2121
cache: true
2222

2323
- name: golangci-lint
2424
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
2525
with:
26-
version: v1.54
26+
version: v1.57
2727
args: --timeout=5m

.golangci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
# Copyright 2023 The OpenVEX Authors
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
---
25
run:
36
concurrency: 6
4-
deadline: 5m
57
issues:
68
exclude-rules:
79
# counterfeiter fakes are usually named 'fake_<something>.go'

Makefile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright 2023 The OpenVEX Authors
22
# SPDX-License-Identifier: Apache-2.0
3+
34
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
45
ifeq (,$(shell go env GOBIN))
56
GOBIN=$(shell go env GOPATH)/bin
@@ -33,17 +34,10 @@ LDFLAGS=-buildid= -X sigs.k8s.io/release-utils/version.gitVersion=$(GIT_VERSION)
3334
pkg: ## Build pkg
3435
go build -trimpath -ldflags "$(LDFLAGS)" ./...
3536

37+
.PHONY: build
38+
build: pkg
39+
3640
## Tests
3741
.PHONY: test
3842
test:
3943
go test -v ./...
40-
41-
## Release
42-
43-
.PHONY: release
44-
release:
45-
LDFLAGS="$(LDFLAGS)" goreleaser release --rm-dist --timeout 120m
46-
47-
.PHONY: snapshot
48-
snapshot:
49-
LDFLAGS="$(LDFLAGS)" goreleaser release --rm-dist --snapshot --skip-sign --skip-publish --timeout 120m

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/openvex/go-vex
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
github.com/google/go-cmp v0.6.0

0 commit comments

Comments
 (0)