2023-04-14 22:21:00 +02:00
|
|
|
name: check-and-test
|
|
|
|
|
|
|
|
on:
|
|
|
|
- pull_request
|
|
|
|
|
2023-10-13 18:04:27 +02:00
|
|
|
env:
|
|
|
|
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest
|
chore(deps): update dependency helm-unittest/helm-unittest to v0.3.6 (#554)
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [helm-unittest/helm-unittest](https://github.com/helm-unittest/helm-unittest) | patch | `0.3.4` -> `v0.3.6` |
---
### Release Notes
<details>
<summary>helm-unittest/helm-unittest (helm-unittest/helm-unittest)</summary>
### [`v0.3.6`](https://github.com/helm-unittest/helm-unittest/releases/tag/v0.3.6)
[Compare Source](https://github.com/helm-unittest/helm-unittest/compare/v0.3.5...v0.3.6)
**Added Features**
- Added templated Test Suites, to make re-usable tests possible (credits [@​hanseltime](https://github.com/hanseltime), resolves [#​57](https://github.com/helm-unittest/helm-unittest/issues/57), resolves [#​186](https://github.com/helm-unittest/helm-unittest/issues/186))
**Improvements**
- Optimize installation (resolves [#​176](https://github.com/helm-unittest/helm-unittest/issues/176), resolves [#​214](https://github.com/helm-unittest/helm-unittest/issues/214), resolves [#​225](https://github.com/helm-unittest/helm-unittest/issues/225))
**Fixes**
- Fix incorrect filtering template files (resolves [#​219](https://github.com/helm-unittest/helm-unittest/issues/219))
- Fix snapshot validator with Empty documents (credits [@​matthyx](https://github.com/matthyx))
- Fix inconsistent results lengthEqual validator (credits [@​hanseltime](https://github.com/hanseltime))
- Fix global values (credit [@​zidoshare](https://github.com/zidoshare), resolves [#​215](https://github.com/helm-unittest/helm-unittest/issues/215))
**Updates**
- Update packages to latest patch versions
- Update documenation
### [`v0.3.5`](https://github.com/helm-unittest/helm-unittest/releases/tag/v0.3.5)
[Compare Source](https://github.com/helm-unittest/helm-unittest/compare/v0.3.4...v0.3.5)
**Fixes**
- Fix recursive subchart testing (credits [@​zidoshare](https://github.com/zidoshare), resolves [#​206](https://github.com/helm-unittest/helm-unittest/issues/206))
- Fix old containsDocument behaviour to ignore other documents in multidocument validation (resolves [#​205](https://github.com/helm-unittest/helm-unittest/issues/205))
- Fix failed_template to also work when empty documents are found (resolves [#​191](https://github.com/helm-unittest/helm-unittest/issues/191))
- Fix failed_template multi colon handling (resolves [#​200](https://github.com/helm-unittest/helm-unittest/issues/200))
- Fix glob all valid filenames (resolves [#​201](https://github.com/helm-unittest/helm-unittest/issues/201))
**Updates**
- Update packages to latest patch versions
- Update documenation (thanks to [@​yariksheptykin](https://github.com/yariksheptykin))
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NC4wIiwidXBkYXRlZEluVmVyIjoiMzcuNDQuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/554
Co-authored-by: Renovate Bot <renovate-bot@gitea.com>
Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
2023-11-06 09:05:05 +01:00
|
|
|
HELM_UNITTEST_VERSION: "v0.3.6"
|
2023-10-13 18:04:27 +02:00
|
|
|
|
2023-04-14 22:21:00 +02:00
|
|
|
jobs:
|
|
|
|
check-and-test:
|
|
|
|
runs-on: ubuntu-latest
|
2023-10-13 18:04:27 +02:00
|
|
|
container: alpine/helm:3.12.3
|
2023-04-14 22:21:00 +02:00
|
|
|
steps:
|
|
|
|
- name: install tools
|
|
|
|
run: |
|
2023-10-13 18:04:27 +02:00
|
|
|
apk update
|
|
|
|
apk add --update make nodejs npm yamllint
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: install chart dependencies
|
|
|
|
run: helm dependency build
|
2023-04-14 22:21:00 +02:00
|
|
|
- name: lint
|
|
|
|
run: helm lint
|
|
|
|
- name: template
|
2023-10-13 18:04:27 +02:00
|
|
|
run: helm template --debug gitea-helm .
|
2023-04-14 22:21:00 +02:00
|
|
|
- name: unit tests
|
|
|
|
run: |
|
2023-10-13 18:04:27 +02:00
|
|
|
helm plugin install --version ${{ env.HELM_UNITTEST_VERSION }} https://github.com/helm-unittest/helm-unittest
|
2023-04-14 22:21:00 +02:00
|
|
|
make unittests
|
|
|
|
- name: verify readme
|
|
|
|
run: |
|
|
|
|
make readme
|
|
|
|
git diff --exit-code --name-only README.md
|
|
|
|
- name: yaml lint
|
|
|
|
uses: https://github.com/ibiqlik/action-yamllint@v3
|