Skip to content

Commit

Permalink
ci: build and test with Go 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Sep 30, 2024
1 parent cd31563 commit 2095c73
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
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

0 comments on commit 2095c73

Please sign in to comment.