diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7049d4fd4..98808c7dc 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,8 +5,13 @@ updates: - package-ecosystem: "gomod" directory: "/" schedule: - interval: "daily" + interval: "weekly" + groups: + dev-dependencies: + dependency-type: "development" + prod-dependencies: + dependency-type: "production" - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "daily" + interval: "weekly" diff --git a/.github/workflows/pre-main.yml b/.github/workflows/pre-main.yml index c94c2fbea..13987294d 100644 --- a/.github/workflows/pre-main.yml +++ b/.github/workflows/pre-main.yml @@ -15,10 +15,10 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Set up Go 1.23 + - name: Set up Go uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: - go-version: 1.23.6 + go-version-file: go.mod - uses: nosborn/github-action-markdown-cli@9b5e871c11cc0649c5ac2526af22e23525fa344d # v3.3.0 with: @@ -45,8 +45,11 @@ jobs: empty-lines: level: warning - - name: Run lint - run: make lint + - name: Golangci-lint + uses: golangci/golangci-lint-action@e0ebdd245eea59746bb0b28ea6a9871d3e35fbc9 # v6.3.3 + with: + version: v1.64 + args: --timeout 10m0s build: runs-on: ubuntu-22.04 @@ -54,10 +57,10 @@ jobs: SHELL: /bin/bash steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Set up Go 1.23 + - name: Set up Go uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: - go-version: 1.23.6 + go-version-file: go.mod - name: Install ginkgo run: make install-ginkgo @@ -73,10 +76,10 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Set up Go 1.23 + - name: Set up Go uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: - go-version: 1.23.6 + go-version-file: go.mod - name: Checkout the certsuite repo uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 diff --git a/.github/workflows/qe.yml b/.github/workflows/qe.yml index df56b1be6..03796cc01 100644 --- a/.github/workflows/qe.yml +++ b/.github/workflows/qe.yml @@ -35,19 +35,19 @@ jobs: touch ${PFLT_DOCKERCONFIG} echo '{ "auths": {} }' >> ${PFLT_DOCKERCONFIG} - - name: Set up Go 1.23 + - name: Check out code + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + ref: ${{ github.sha }} + + - name: Set up Go uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: - go-version: 1.23.6 + go-version-file: go.mod - name: Disable default go problem matcher run: echo "::remove-matcher owner=go::" - - name: Check out code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - ref: ${{ github.sha }} - - name: Check out `certsuite-sample-workload` uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: diff --git a/.golangci.yml b/.golangci.yml index ef6b6e77a..453c927d8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,5 @@ run: - go: "1.23" + go: "1.24" timeout: 15m0s skip-dirs-use-default: true fast: false @@ -23,7 +23,7 @@ linters-settings: statements: 85 unused: check-exported: true - go: "1.23" + go: "1.24" stylecheck: dot-import-whitelist: - github.com/onsi/gomega diff --git a/go.mod b/go.mod index 1f01e7d0b..66179a272 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/redhat-best-practices-for-k8s/certsuite-qe -go 1.23.6 +go 1.24.0 require ( github.com/golang/glog v1.2.4 diff --git a/scripts/install-latest-go.sh b/scripts/install-latest-go.sh index cdd2e58c8..d9649d950 100755 --- a/scripts/install-latest-go.sh +++ b/scripts/install-latest-go.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -REQUIRED_GO_VERSION=1.23.6 +REQUIRED_GO_VERSION=1.24.0 INSTALLED_GO_VERSION="$( go version | { read -r _ _ v _