CI: Rework unit testing.
This commit is contained in:
parent
be6f207ae7
commit
a3e2712d48
1 changed files with 6 additions and 8 deletions
14
.github/workflows/ci.yaml
vendored
14
.github/workflows/ci.yaml
vendored
|
@ -221,19 +221,14 @@ jobs:
|
||||||
- name: Set up Helm Docs
|
- name: Set up Helm Docs
|
||||||
uses: gabe565/setup-helm-docs-action@d5c35bdc9133cfbea3b671acadf50a29029e87c2 # v1.0.4
|
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
|
- name: Checkout
|
||||||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
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
|
- name: Lint chart
|
||||||
run: |
|
run: |
|
||||||
ct lint --config .ct.yaml
|
ct lint --config .ct.yaml
|
||||||
|
@ -244,6 +239,9 @@ jobs:
|
||||||
helm-docs --chart-search-root charts
|
helm-docs --chart-search-root charts
|
||||||
git diff --exit-code charts/ingress-nginx/README.md
|
git diff --exit-code charts/ingress-nginx/README.md
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
run: helm unittest charts/ingress-nginx
|
||||||
|
|
||||||
chart-test:
|
chart-test:
|
||||||
name: Chart / Test
|
name: Chart / Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue