b265d87f55
While working on #409, I noticed that some unittests contains either invalid assertion methods (`isNotEmpty`) or invalid properties (`any`) for a specific assertion method (`notContains`). As our tests pass - and I have ensured that they can fail - this seems related to the YAML schema validation in the IDE. I've noticed that `isNotEmpty` was replaced by `isNotNullOrEmpty`[^1] in version v0.3.2[^2]. At least from a schema validation point of view. It is still working. Maybe deprecated? I don't know. Regarding the `any` property, the documentation seems incorrect. I've filed a PR for it[^3]. As soon as that PR is merged and released, we could probably validate the test YAML files in our PR workflow. Last, since we renovate the used helm-unittest version, we should also renovate the used YAML schema file. [^1]: https://github.com/helm-unittest/helm-unittest/pull/139 [^2]: https://github.com/helm-unittest/helm-unittest/releases/tag/v0.3.2 [^3]: https://github.com/helm-unittest/helm-unittest/pull/243 Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/570 Reviewed-by: pat-s <pat-s@noreply.gitea.com>
61 lines
1.6 KiB
Plaintext
61 lines
1.6 KiB
Plaintext
{
|
|
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
|
|
extends: [
|
|
'gitea>gitea/renovate-config',
|
|
':automergeMinor',
|
|
'schedule:automergeDaily',
|
|
'schedule:weekends',
|
|
],
|
|
labels: [
|
|
'kind/dependency',
|
|
],
|
|
automergeStrategy: 'squash',
|
|
customManagers: [
|
|
{
|
|
description: 'Gitea-version of https://docs.renovatebot.com/presets-regexManagers/#regexmanagersgithubactionsversions',
|
|
customType: 'regex',
|
|
fileMatch: [
|
|
'.gitea/workflows/.+\\.ya?ml$',
|
|
],
|
|
matchStrings: [
|
|
'# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[a-z-0-9]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:\\s*["\']?(?<currentValue>.+?)["\']?\\s',
|
|
],
|
|
},
|
|
{
|
|
description: 'Detect helm-unittest yaml schema file',
|
|
customType: 'regex',
|
|
fileMatch: ['.vscode/settings\\.json$'],
|
|
matchStrings: [
|
|
'https:\\/\\/raw\\.githubusercontent\\.com\\/(?<depName>[^\\s]+?)\\/(?<currentValue>v[0-9.]+?)\\/schema\\/helm-testsuite\\.json',
|
|
],
|
|
datasourceTemplate: 'github-releases',
|
|
},
|
|
],
|
|
packageRules: [
|
|
{
|
|
groupName: 'subcharts (minor & patch)',
|
|
matchManagers: [
|
|
'helmv3',
|
|
],
|
|
matchUpdateTypes: [
|
|
'minor',
|
|
'patch',
|
|
'digest',
|
|
],
|
|
},
|
|
{
|
|
groupName: 'workflow dependencies (minor & patch)',
|
|
matchManagers: [
|
|
'github-actions',
|
|
'npm',
|
|
'custom.regex',
|
|
],
|
|
matchUpdateTypes: [
|
|
'minor',
|
|
'patch',
|
|
'digest',
|
|
],
|
|
},
|
|
],
|
|
}
|