From a78277a6e80904895caf297e57ac5b24e98ddd80 Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 4 Mar 2024 10:27:47 +0100 Subject: [PATCH 1/2] feat: require Go >= 1.20 --- .github/workflows/ci.yml | 4 +++- go.mod | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a5e4697..d42b5842 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,9 @@ jobs: test: strategy: matrix: - go-version: ["1.19", "1.20", "1.21"] + go-version: + - "1.20" + - "1.21" runs-on: ubuntu-latest steps: diff --git a/go.mod b/go.mod index 2774ec60..da1c2296 100644 --- a/go.mod +++ b/go.mod @@ -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 From a8fb2504023a7deec224462345131a251627c844 Mon Sep 17 00:00:00 2001 From: jo Date: Mon, 4 Mar 2024 10:29:35 +0100 Subject: [PATCH 2/2] style: format yaml file --- .github/workflows/ci.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d42b5842..882c55e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,16 +30,16 @@ jobs: 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 @@ -55,4 +55,4 @@ jobs: - run: git diff --exit-code - if: failure() - run: echo "::error::Check failed, please run 'go generate ./...' and commit the changes." \ No newline at end of file + run: echo "::error::Check failed, please run 'go generate ./...' and commit the changes."