Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: build and test with Go 1.23 #234

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
push:
branches: [main]

env:
GOTOOLCHAIN: local

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,7 +23,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: "1.23"

- uses: goreleaser/goreleaser-action@v6
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:

env:
GOTOOLCHAIN: local

permissions:
contents: read

Expand All @@ -15,7 +18,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: "1.23"

- uses: golangci/golangci-lint-action@v6
with:
Expand All @@ -27,7 +30,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: "1.23"

- run: go mod tidy

Expand All @@ -42,7 +45,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: "1.23"

- run: make generate

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
push:
tags: [v*]

env:
GOTOOLCHAIN: local

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -20,7 +23,7 @@ jobs:

- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: "1.23"

- name: Import GPG key
id: import_gpg
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches: [main]
pull_request:

env:
GOTOOLCHAIN: local

permissions:
contents: read

Expand All @@ -24,7 +27,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: "1.23"

- run: make test

Expand All @@ -49,7 +52,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version: "1.23"

- uses: hetznercloud/tps-action@main

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/hetznercloud/packer-plugin-hcloud

go 1.21.0

toolchain go1.22.7
toolchain go1.23.1

require (
github.com/hashicorp/hcl/v2 v2.22.0
Expand Down