From 977d1bee7661a7d44a7f08ee500f671e12382bb9 Mon Sep 17 00:00:00 2001 From: Aravindhan Ayyanathan Date: Wed, 27 May 2026 08:09:30 +0100 Subject: [PATCH] Use porch setup-go-kpt composite action in CI workflows Signed-off-by: Aravindhan Ayyanathan --- .github/workflows/ci.yaml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4e2694bd..ba428fc3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -17,7 +17,7 @@ jobs: platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Lint shell scripts, ignoring third-party files run: | find . -name "*.sh" | grep -v site | grep -v vendor | grep -v node_modules | grep -v demo/demo-magic > shell_files.out @@ -28,21 +28,12 @@ jobs: matrix: platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} - env: - GOPATH: /home/runner/work/krm-functions-sdk/go - GO111MODULE: on steps: - - name: Check out code into GOPATH - uses: actions/checkout@v5 - with: - path: go/src/github.com/kptdev/krm-functions-sdk + - uses: actions/checkout@v6 - name: Set up Go - uses: actions/setup-go@v6 + uses: kptdev/porch/.github/actions/setup-go-kpt@main with: - go-version-file: go/src/github.com/kptdev/krm-functions-sdk/go/fn/go.mod - cache: true - id: go + go-version-file: go/fn/go.mod + install-kpt: 'false' - name: Build, Test, Lint - run: | - cd go/src/github.com/kptdev/krm-functions-sdk - hack/ci-validate-go.sh \ No newline at end of file + run: hack/ci-validate-go.sh \ No newline at end of file