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:
parent
51af60b1bf
commit
5a18230e35
3 changed files with 22 additions and 4 deletions
2
.github/actions/setup-test-env/action.yaml
vendored
2
.github/actions/setup-test-env/action.yaml
vendored
|
@ -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
|
||||
|
|
9
.github/workflows/helm-test.yaml
vendored
9
.github/workflows/helm-test.yaml
vendored
|
@ -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
|
||||
|
|
15
Makefile
15
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue