diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a5e4697..882c55e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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." \ No newline at end of file + run: echo "::error::Check failed, please run 'go generate ./...' and commit the changes." 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