CI: Rework unit testing.

This commit is contained in:
Marco Ebert 2024-02-04 21:42:04 +01:00 committed by k8s-infra-cherrypick-robot
parent be6f207ae7
commit a3e2712d48

View file

@ -221,19 +221,14 @@ jobs:
- name: Set up Helm Docs
uses: gabe565/setup-helm-docs-action@d5c35bdc9133cfbea3b671acadf50a29029e87c2 # v1.0.4
- name: Set up Helm Unit Test
run: helm plugin install https://github.com/helm-unittest/helm-unittest
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
- name: Install Helm Unit Test Plugin
run: |
helm plugin install https://github.com/helm-unittest/helm-unittest
- name: Run Helm Unit Tests
run: |
helm unittest charts/ingress-nginx -d
- name: Lint chart
run: |
ct lint --config .ct.yaml
@ -244,6 +239,9 @@ jobs:
helm-docs --chart-search-root charts
git diff --exit-code charts/ingress-nginx/README.md
- name: Run tests
run: helm unittest charts/ingress-nginx
chart-test:
name: Chart / Test
runs-on: ubuntu-latest