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

feat: require Go >= 1.20 #392

Merged
merged 2 commits into from
Mar 4, 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
22 changes: 12 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,22 @@ jobs:
test:
strategy:
matrix:
go-version: ["1.19", "1.20", "1.21"]
go-version:
- "1.20"
- "1.21"

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- run: go test -coverprofile=coverage.txt -v -race ./...
- run: go test -coverprofile=coverage.txt -v -race ./...

- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

generate:
runs-on: ubuntu-latest
Expand All @@ -53,4 +55,4 @@ jobs:
- run: git diff --exit-code

- if: failure()
run: echo "::error::Check failed, please run 'go generate ./...' and commit the changes."
run: echo "::error::Check failed, please run 'go generate ./...' and commit the changes."
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module github.com/hetznercloud/hcloud-go/v2
// all dependends to update to the new version.
// As long as we do not depend on any newer language feature this can be kept at the current value.
// It should never be higher than the lowest currently supported version of Go.
go 1.19
go 1.20

require (
github.com/google/go-cmp v0.6.0
Expand Down
Loading