Renovate: run tests on branches, group deps and adjust schedule to weekends (#556)

Co-authored-by: justusbunsi <sk.bunsenbrenner@gmail.com>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/556
Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-committed-by: pat-s <patrick.schratz@gmail.com>
This commit is contained in:
pat-s 2023-11-16 20:45:10 +00:00 committed by justusbunsi
parent ead62a0dbc
commit d52ead0be7
2 changed files with 33 additions and 19 deletions

View File

@ -1,7 +1,13 @@
name: check-and-test name: check-and-test
on: on:
- pull_request pull_request:
branches:
- "*"
push:
branches:
- main
- "renovate/**"
env: env:
# renovate: datasource=github-releases depName=helm-unittest/helm-unittest # renovate: datasource=github-releases depName=helm-unittest/helm-unittest

View File

@ -1,25 +1,33 @@
{ {
$schema: "https://docs.renovatebot.com/renovate-schema.json", $schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: ["gitea>gitea/renovate-config"], extends: [
labels: ["kind/dependency"], 'gitea>gitea/renovate-config',
':automergeMinor',
'schedule:automergeDaily',
'schedule:weekends',
],
labels: ['kind/dependency'],
automergeStrategy: 'squash',
customManagers: [ customManagers: [
{ {
description: 'Gitea-version of https://docs.renovatebot.com/presets-regexManagers/#regexmanagersgithubactionsversions', description: 'Gitea-version of https://docs.renovatebot.com/presets-regexManagers/#regexmanagersgithubactionsversions',
customType: 'regex', customType: 'regex',
fileMatch: ['.gitea/workflows/.+\\.ya?ml$'], fileMatch: ['.gitea/workflows/.+\\.ya?ml$'],
matchStrings: [ 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', '# 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',
], ],
}, },
], ],
packageRules: [ packageRules: [
{ {
description: "Automerge minor + patch dependency updates weekly", groupName: 'subcharts (minor & patch)',
matchManagers: ["helmv3"], matchManagers: ['helmv3'],
matchUpdateTypes: ["minor", "patch", "digest"], matchUpdateTypes: ['minor', 'patch', 'digest'],
automerge: true, },
automergeStrategy: "squash", {
extends: ["schedule:weekly"], groupName: 'workflow dependencies (minor & patch)',
matchManagers: ['github-actions', 'npm', 'regex'],
matchUpdateTypes: ['minor', 'patch', 'digest'],
}, },
], ],
} }