diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 338d4ba0..1ca92239 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [1.13, 1.14, 1.15, 1.16] + go-version: [1.13, 1.14, 1.15, 1.16, 1.17] steps: - name: Set up Go ${{ matrix.go-version }} uses: actions/setup-go@v2 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 4a7d221e..88bb8670 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -17,7 +17,7 @@ jobs: uses: golangci/golangci-lint-action@v2 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.36 + version: latest # Optional: working directory, useful for monorepos # working-directory: somedir diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a40b7b26..e8cfea5d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,9 +7,6 @@ jobs: build: name: Build runs-on: ubuntu-latest - strategy: - matrix: - go-version: [ 1.16 ] steps: - name: Checkout uses: actions/checkout@v2 @@ -18,7 +15,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.16 + go-version: 1.17 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d7f4fbd..cfd77fba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ variables: test:golangci-lint: stage: test - image: golangci/golangci-lint:v1.36 + image: golangci/golangci-lint:latest script: - golangci-lint run -v except: @@ -17,7 +17,7 @@ test:golangci-lint: test:tests: stage: test - image: golang:1.16 + image: golang:1.17 script: - go test -v -race ./... except: diff --git a/go.mod b/go.mod index 82cb8c7a..62bb4c9c 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,14 @@ module github.com/hetznercloud/hcloud-go -go 1.16 +go 1.17 require ( github.com/google/go-cmp v0.5.0 github.com/stretchr/testify v1.7.0 ) + +require ( + github.com/davecgh/go-spew v1.1.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect +) diff --git a/go.sum b/go.sum index c9ecce42..0a5f85ec 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= -github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/google/go-cmp v0.5.0 h1:/QaMHBdZ26BB3SSst0Iwl10Epc+xhTquomWX0oZEB6w=