From cdab2ff703cfafd2b466d8d6cc28a2c42a28f705 Mon Sep 17 00:00:00 2001 From: Johannes Eiglsperger Date: Tue, 11 Jun 2024 16:05:17 +0200 Subject: [PATCH] Always check for the latest Go version --- .github/workflows/build.yml | 1 + .github/workflows/golangci-lint.yml | 1 + .github/workflows/govulncheck.yml | 1 + .github/workflows/lint.yml | 1 + .github/workflows/staticcheck.yml | 1 + .github/workflows/test.yml | 1 + 6 files changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6aa9110..dc7dfae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,4 +19,5 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: "go.mod" + check-latest: true - run: go build ./cmd/dyndns-pdns diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index e4e3e68..be6c49c 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -19,6 +19,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: "go.mod" + check-latest: true - uses: golangci/golangci-lint-action@v6 with: version: v1.57.2 diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index 0c2f8ff..162fba6 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -21,3 +21,4 @@ jobs: with: go-version-file: "go.mod" go-package: ./... + check-latest: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b29c647..2ac7d42 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,6 +19,7 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: "go.mod" + check-latest: true - run: | gofmt -d . test -z $(gofmt -l .) diff --git a/.github/workflows/staticcheck.yml b/.github/workflows/staticcheck.yml index e74b133..9040dc7 100644 --- a/.github/workflows/staticcheck.yml +++ b/.github/workflows/staticcheck.yml @@ -19,5 +19,6 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: "go.mod" + check-latest: true - run: go install honnef.co/go/tools/cmd/staticcheck@latest - run: $(go env GOPATH)/bin/staticcheck ./... diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 23d6048..5b6bc3c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,5 +19,6 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: "go.mod" + check-latest: true - run: go test -v -coverprofile="coverage.out" ./... - run: go tool cover -func="coverage.out"