From 1f020e0c4a0c2ebb8db13037284c7b4caa00ba0b Mon Sep 17 00:00:00 2001 From: Slach Date: Wed, 27 Dec 2023 13:00:03 +0500 Subject: [PATCH] add Validate krew-index manifest --- .github/workflows/test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3ed7b5..90ee4c6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,3 +21,9 @@ jobs: go-version-file: go.mod cache: true - run: go test -v ./... + - name: Validate krew-index manifest + run: | + go install sigs.k8s.io/krew/cmd/validate-krew-manifest@latest + docker run --rm -v ./.krew/tail.yaml:/tmp/template-file.yaml ghcr.io/rajatjindal/krew-release-bot:latest krew-release-bot template --tag $(git describe --abbrev=0 --tags) --template-file /tmp/template-file.yaml 1>/tmp/tail.yaml + ~/go/bin/validate-krew-manifest -manifest /tmp/tail.yaml +