From 1012662d7f06a711f0d05875e3df07189ed392f2 Mon Sep 17 00:00:00 2001 From: PuneetPunamiya Date: Thu, 13 Feb 2025 17:33:19 +0530 Subject: [PATCH 1/3] Revert "Bump golangci/golangci-lint-action from 6.2.0 to 6.3.2" This reverts commit 32ce45baed72b46fd6fa87d229a00ff932e34d83. --- .github/workflows/golangci-lint.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 4611ce73b..e7d2945ff 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -19,7 +19,7 @@ jobs: with: go-version: stable - name: golangci-lint - uses: golangci/golangci-lint-action@051d91933864810ecd5e2ea2cfd98f6a5bca5347 # v6.3.2 + uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0 with: version: v1.60 args: --timeout=10m From 4cc090db2f5b5d217f98c596870e6b6d02afb864 Mon Sep 17 00:00:00 2001 From: PuneetPunamiya Date: Thu, 13 Feb 2025 17:33:42 +0530 Subject: [PATCH 2/3] fixes go.mod Signed-off-by: PuneetPunamiya --- go.mod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index e8bdccc08..54efe6002 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,7 @@ module github.com/tektoncd/operator -go 1.23 +go 1.23.4 + toolchain go1.23.6 require ( From 8ee878f937a8c49fcf4b9fb913dab1b99aae84f3 Mon Sep 17 00:00:00 2001 From: PuneetPunamiya Date: Thu, 13 Feb 2025 17:50:45 +0530 Subject: [PATCH 3/3] fixes ci Signed-off-by: PuneetPunamiya --- .github/workflows/golangci-lint.yaml | 29 +++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index e7d2945ff..a0edf2272 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -18,8 +18,31 @@ jobs: - uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 with: go-version: stable - - name: golangci-lint - uses: golangci/golangci-lint-action@ec5d18412c0aeab7936cb16880d708ba2a64e1ae # v6.2.0 + + - name: Cache Go Modules + uses: actions/cache@v3 + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go-mod- + + - name: Cache Go Build + uses: actions/cache@v3 + with: + path: ~/.cache/go-build + key: ${{ runner.os }}-go-build-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-go-build- + + - name: Install Dependencies + run: go mod tidy + + - name: Verify Build + run: go build ./... + + - name: Run GolangCI-Lint + uses: golangci/golangci-lint-action@v6.2.0 with: version: v1.60 - args: --timeout=10m + args: --timeout=10m --verbose