diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d97bf167..65587634 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,8 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set up Go 1.x - uses: actions/setup-go@v2 + - name: Set up Go + uses: actions/setup-go@v3 with: go-version: ~1.17 id: go @@ -53,27 +53,36 @@ jobs: runs-on: ubuntu-latest steps: + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: ~1.17 + id: go + - name: Check out code into the Go module directory uses: actions/checkout@v2 - name: Lint - uses: golangci/golangci-lint-action@v2 + uses: golangci/golangci-lint-action@v3 with: - version: v1.35.2 + version: v1.45.2 go-apidiff: name: go-apidiff if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: + - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: - go-version: ~1.16 + go-version: ~1.17 id: go + - name: Check out code into the Go module directory uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Run go-apidiff uses: joelanford/go-apidiff@main diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b09bdfa3..1e70ea79 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,7 +26,7 @@ jobs: GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: ~1.17 diff --git a/.goreleaser.yml b/.goreleaser.yml index 83e0100a..9f438b79 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,7 +8,7 @@ env: # Hooks to run before any build is run. before: hooks: - - go version | grep --quiet "go1\.15\.6" || echo "Go binary version must be 1.15.6" + - go version | grep --quiet "go1\.17" || echo "Go binary version must be 1.17.x" - go mod download # Binary builds. diff --git a/Dockerfile b/Dockerfile index 4f58f960..91c48afc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM --platform=$BUILDPLATFORM golang:1.15 as builder +FROM --platform=$BUILDPLATFORM golang:1.17 as builder ARG TARGETOS ARG TARGETARCH diff --git a/Makefile b/Makefile index a87d1c07..694bb0ac 100644 --- a/Makefile +++ b/Makefile @@ -69,7 +69,7 @@ fix: # Run various checks against code .PHONY: lint lint: - fetch golangci-lint 1.43.0 && golangci-lint run + fetch golangci-lint 1.45.2 && golangci-lint run .PHONY: release release: GORELEASER_ARGS ?= --snapshot --rm-dist --skip-sign