Skip to content

Commit 07f841a

Browse files
authored
Use porch setup-go-kpt composite action in CI workflows (#757)
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
1 parent a8c4ecf commit 07f841a

1 file changed

Lines changed: 6 additions & 15 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
platform: [ubuntu-latest]
1818
runs-on: ${{ matrix.platform }}
1919
steps:
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@v6
2121
- name: Lint shell scripts, ignoring third-party files
2222
run: |
2323
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:
2828
matrix:
2929
platform: [ubuntu-latest]
3030
runs-on: ${{ matrix.platform }}
31-
env:
32-
GOPATH: /home/runner/work/krm-functions-sdk/go
33-
GO111MODULE: on
3431
steps:
35-
- name: Check out code into GOPATH
36-
uses: actions/checkout@v5
37-
with:
38-
path: go/src/github.com/kptdev/krm-functions-sdk
32+
- uses: actions/checkout@v6
3933
- name: Set up Go
40-
uses: actions/setup-go@v6
34+
uses: kptdev/porch/.github/actions/setup-go-kpt@main
4135
with:
42-
go-version-file: go/src/github.com/kptdev/krm-functions-sdk/go/fn/go.mod
43-
cache: true
44-
id: go
36+
go-version-file: go/fn/go.mod
37+
install-kpt: 'false'
4538
- name: Build, Test, Lint
46-
run: |
47-
cd go/src/github.com/kptdev/krm-functions-sdk
48-
hack/ci-validate-go.sh
39+
run: hack/ci-validate-go.sh

0 commit comments

Comments
 (0)