File tree Expand file tree Collapse file tree 6 files changed +23
-30
lines changed Expand file tree Collapse file tree 6 files changed +23
-30
lines changed Original file line number Diff line number Diff line change @@ -16,29 +16,27 @@ jobs:
1616 runs-on : ubuntu-22.04
1717
1818 steps :
19- - name : Set up Go 1.23
20- uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
21- with :
22- go-version : 1.23.6
23-
24- - name : Disable default go problem matcher
25- run : echo "::remove-matcher owner=go::"
26-
2719 - name : Check out code into the Go module directory
2820 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2921 with :
3022 ref : ${{ github.sha }}
3123
32- # TODO: golangci-lint team recommends using a GitHub Action to perform golangci-lint responsibilities. However
33- # there does not appear to be a way to honor our existing .golangci.yml. For now, mimic developer behavior.
34- - name : Install golangci-lint
35- run : make install-lint
24+ - name : Set up Go
25+ uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
26+ with :
27+ go-version-file : go.mod
28+
29+ - name : Disable default go problem matcher
30+ run : echo "::remove-matcher owner=go::"
3631
3732 - name : make build-oct
3833 run : make build-oct
3934
40- - name : make lint
41- run : make lint
35+ - name : Golangci-lint
36+ uses : golangci/golangci-lint-action@v6
37+ with :
38+ version : v1.64
39+ args : --timeout 10m0s
4240
4341 - name : make vet
4442 run : make vet
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ jobs:
2020 steps :
2121 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
23- - name : Set up Go 1.23
23+ - name : Set up Go 1.24
2424 uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
2525 with :
26- go-version : 1.23.6
26+ go-version : 1.24.0
2727
2828 - name : Disable default go problem matcher
2929 run : echo "::remove-matcher owner=go::"
Original file line number Diff line number Diff line change @@ -11,19 +11,19 @@ RUN yum install -y gcc git jq make wget
1111ENV \
1212 GO_DL_URL=https://golang.org/dl \
1313 GOPATH=/root/go
14- ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.23.6 .linux-amd64.tar.gz
15- ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.23.6 .linux-arm64.tar.gz
14+ ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.24.0 .linux-amd64.tar.gz
15+ ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.24.0 .linux-arm64.tar.gz
1616
1717# Determine the CPU architecture and download the appropriate Go binary
1818RUN \
1919 if [ "$(uname -m)" = x86_64 ]; then \
2020 wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_x86_64} --quiet \
2121 && rm -rf /usr/local/go \
22- && tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.6 .linux-amd64.tar.gz; \
22+ && tar -C /usr/local -xzf ${TEMP_DIR}/go1.24.0 .linux-amd64.tar.gz; \
2323 elif [ "$(uname -m)" = aarch64 ]; then \
2424 wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_aarch64} --quiet \
2525 && rm -rf /usr/local/go \
26- && tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.6 .linux-arm64.tar.gz; \
26+ && tar -C /usr/local -xzf ${TEMP_DIR}/go1.24.0 .linux-arm64.tar.gz; \
2727 else \
2828 echo "CPU architecture is not supported." && exit 1; \
2929 fi
Original file line number Diff line number Diff line change @@ -11,19 +11,19 @@ RUN yum install -y gcc git jq make wget
1111ENV \
1212 GO_DL_URL=https://golang.org/dl \
1313 GOPATH=/root/go
14- ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.23.6 .linux-amd64.tar.gz
15- ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.23.6 .linux-arm64.tar.gz
14+ ENV GO_BIN_URL_x86_64=${GO_DL_URL}/go1.24.0 .linux-amd64.tar.gz
15+ ENV GO_BIN_URL_aarch64=${GO_DL_URL}/go1.24.0 .linux-arm64.tar.gz
1616
1717# Determine the CPU architecture and download the appropriate Go binary
1818RUN \
1919 if [ "$(uname -m)" = x86_64 ]; then \
2020 wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_x86_64} --quiet \
2121 && rm -rf /usr/local/go \
22- && tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.6 .linux-amd64.tar.gz; \
22+ && tar -C /usr/local -xzf ${TEMP_DIR}/go1.24.0 .linux-amd64.tar.gz; \
2323 elif [ "$(uname -m)" = aarch64 ]; then \
2424 wget --directory-prefix=${TEMP_DIR} ${GO_BIN_URL_aarch64} --quiet \
2525 && rm -rf /usr/local/go \
26- && tar -C /usr/local -xzf ${TEMP_DIR}/go1.23.6 .linux-arm64.tar.gz; \
26+ && tar -C /usr/local -xzf ${TEMP_DIR}/go1.24.0 .linux-arm64.tar.gz; \
2727 else \
2828 echo "CPU architecture is not supported." && exit 1; \
2929 fi
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ GO_PACKAGES=$(shell go list ./... | grep -v vendor)
2525 vet
2626
2727OCT_TOOL_NAME =oct
28- GOLANGCI_VERSION =v1.64.3
2928
3029# Run the unit tests and build all binaries
3130build :
@@ -64,9 +63,5 @@ update-deps:
6463 go mod tidy && \
6564 go mod vendor
6665
67- # Install golangci-lint
68- install-lint :
69- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ${GO_PATH} /bin ${GOLANGCI_VERSION}
70-
7166vet :
7267 go vet ${GO_PACKAGES}
Original file line number Diff line number Diff line change 11module github.com/redhat-best-practices-for-k8s/oct
22
3- go 1.23.6
3+ go 1.24.0
44
55require (
66 github.com/Masterminds/semver/v3 v3.3.1
You can’t perform that action at this time.
0 commit comments