1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

chore: run helm test (#6053)

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
Charles-Edouard Brétéché 2023-01-20 08:40:44 +01:00 committed by GitHub
parent 51af60b1bf
commit 5a18230e35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 4 deletions

View file

@ -5,7 +5,7 @@ description: Create kind cluster, deploy kyverno, and wait pods are ready.
inputs:
version:
description: kubernetes version
required: true
default: v1.26.0
runs:
using: composite

View file

@ -33,3 +33,12 @@ jobs:
then
ct lint --target-branch=main --check-version-increment=false
fi
- name: Setup test env
uses: ./.github/actions/setup-test-env
with:
build-cache-key: helm-tests
- name: Helm test
run: make helm-test
- name: Debug failure
if: failure()
uses: ./.github/actions/kyverno-logs

View file

@ -658,9 +658,18 @@ test-cli-test-case-selector-flag: $(CLI_BIN)
test-cli-registry: $(CLI_BIN)
@$(CLI_BIN) test ./test/cli/registry --registry
##################################
# Testing & Code-Coverage
##################################
#############
# HELM TEST #
#############
.PHONY: helm-test
helm-test: $(HELM) ## Run helm test
@echo Running helm test... >&2
@$(HELM) test --namespace kyverno kyverno
###########################
# Testing & Code-Coverage #
###########################
helm-test-values:
sed -i -e "s|nameOverride:.*|nameOverride: kyverno|g" charts/kyverno/values.yaml