-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathrenovate.json5
More file actions
204 lines (204 loc) · 8.78 KB
/
Copy pathrenovate.json5
File metadata and controls
204 lines (204 loc) · 8.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
{
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'github>Lombiq/Open-Source-Orchard-Core-Extensions:renovate-osoce-orchard-core-submodule.json5',
],
packageRules: [
{
groupName: 'Atata',
matchPackageNames: [
'Atata*',
],
prBodyNotes: [
'If Atata updated the Selenium version it uses, also see the [Selenium release notes](https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/CHANGELOG).',
],
// Selenium.WebDriver 4.39.0 causes JSON parsing issues (with 4.38.0 being safe), see:
// https://github.com/atata-framework/atata/discussions/862. Until this is resolved, Atata can't be updated.
// When this is fixed, remove both `enabled: false` and the Selenium.WebDriver section below.
enabled: false,
},
{
groupName: 'Browsers',
matchDatasources: [
'custom.chrome-for-testing',
'custom.edge-linux',
'custom.edge-macos',
'custom.edge-windows',
'custom.firefox',
],
},
{
groupName: 'Deque.AxeCore',
matchPackageNames: [
'Deque.AxeCore.*',
],
},
{
groupName: 'Microsoft.Extensions',
matchPackageNames: [
'Microsoft.Extensions.*',
],
},
{
matchPackageNames: [
'Selenium.WebDriver',
],
// Selenium.WebDriver 4.39.0 causes JSON parsing issues (with 4.38.0 being safe), see:
// https://github.com/SeleniumHQ/selenium/issues/16801. Until this is resolved, it can't be updated.
// When this is fixed, remove both this section and the direct Selenium.WebDriver reference in
// Lombiq.Tests.UI.
enabled: false,
},
{
// No groupName, because we don't want these updates to be in their own groups, just want to add the note.
// Otherwise, the release is not linked for this package.
matchPackageNames: [
'rnwood.smtp4dev',
],
prBodyNotes: [
'For details about the `rnwood.smtp4dev` release, see [its release notes](https://github.com/rnwood/smtp4dev/releases/tag/{{newVersion}}).',
],
// smtp4dev 3.15.0 switched from net8.0 to net10.0, breaking dotnet tool restore on .NET 8 SDK (CI uses
// 8.0.x). The DotnetToolSettings.xml is only under tools/net10.0/any/ so the .NET 8 SDK can't find it.
// Re-enable once the project and CI migrate to .NET 10.
enabled: false,
},
{
groupName: 'ZAP',
matchPackageNames: [
'zaproxy/zap-stable',
],
// Renovate can't update the digest for some reason (it just fails).
pinDigests: false,
prBodyNotes: [
'For more details, see the [ZAP release notes](https://www.zaproxy.org/docs/desktop/releases/{{newVersion}}/).',
],
},
],
customManagers: [
{
depNameTemplate: 'Chrome for Testing .NET',
customType: 'regex',
managerFilePatterns: [
'/WebDriverFactory\\.cs$/',
],
matchStrings: [
'chromeConfig\\.Options\\.BrowserVersion\\s*=\\s*"(?<currentValue>[^"]+)"',
],
datasourceTemplate: 'custom.chrome-for-testing',
// Without support for four-segment version numbers, 'loose' needs to be used. See:
// https://github.com/renovatebot/renovate/issues/4860 and https://github.com/renovatebot/renovate/issues/28297.
versioningTemplate: 'loose',
},
{
depNameTemplate: 'Chrome for Testing JavaScript',
customType: 'regex',
managerFilePatterns: [
'/ui-testing-toolkit\\.mjs$/',
],
matchStrings: [
"\\.setBrowserVersion\\('(?<currentValue>[^']+)'\\)",
],
datasourceTemplate: 'custom.chrome-for-testing',
// Without support for four-segment version numbers, 'loose' needs to be used. See:
// https://github.com/renovatebot/renovate/issues/4860 and https://github.com/renovatebot/renovate/issues/28297.
versioningTemplate: 'loose',
},
{
depNameTemplate: 'Edge Linux',
customType: 'regex',
managerFilePatterns: [
'/WebDriverFactory\\.cs$/',
],
matchStrings: [
'linuxEdgeVersion\\s*=\\s*"(?<currentValue>[^"]+)"',
],
datasourceTemplate: 'custom.edge-linux',
// Without support for four-segment version numbers, 'loose' needs to be used. See:
// https://github.com/renovatebot/renovate/issues/4860 and https://github.com/renovatebot/renovate/issues/28297.
versioningTemplate: 'loose',
},
{
depNameTemplate: 'Edge MacOS',
customType: 'regex',
managerFilePatterns: [
'/WebDriverFactory\\.cs$/',
],
matchStrings: [
'macOsEdgeVersion\\s*=\\s*"(?<currentValue>[^"]+)"',
],
datasourceTemplate: 'custom.edge-macos',
// Without support for four-segment version numbers, 'loose' needs to be used. See:
// https://github.com/renovatebot/renovate/issues/4860 and https://github.com/renovatebot/renovate/issues/28297.
versioningTemplate: 'loose',
},
{
depNameTemplate: 'Edge Windows',
customType: 'regex',
managerFilePatterns: [
'/WebDriverFactory\\.cs$/',
],
matchStrings: [
'windowsEdgeVersion\\s*=\\s*"(?<currentValue>[^"]+)"',
],
datasourceTemplate: 'custom.edge-windows',
// Without support for four-segment version numbers, 'loose' needs to be used. See:
// https://github.com/renovatebot/renovate/issues/4860 and https://github.com/renovatebot/renovate/issues/28297.
versioningTemplate: 'loose',
},
{
depNameTemplate: 'Firefox',
customType: 'regex',
managerFilePatterns: [
'/WebDriverFactory\\.cs$/',
],
matchStrings: [
'firefoxOptions\\.BrowserVersion\\s*=\\s*"(?<currentValue>[^"]+)"',
],
datasourceTemplate: 'custom.firefox',
},
{
depNameTemplate: 'zaproxy/zap-stable',
customType: 'regex',
managerFilePatterns: [
'/ZapManager\\.cs$/',
],
matchStrings: [
'private const string _zapImage\\s*=\\s*"zaproxy/zap-stable:(?<currentValue>[^"]+)";',
],
datasourceTemplate: 'docker',
},
],
customDatasources: {
'chrome-for-testing': {
defaultRegistryUrlTemplate: 'https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json',
transformTemplates: [
'{ "releases": [ { "version": channels.Stable.version } ], "homepage": "https://googlechromelabs.github.io/chrome-for-testing/" }',
],
},
'edge-linux': {
defaultRegistryUrlTemplate: 'https://edgeupdates.microsoft.com/api/products',
transformTemplates: [
'{ "releases": [ { "version": $[Product="Stable"].Releases[Platform="Linux"].ProductVersion } ], "homepage": "https://www.microsoft.com/en-us/edge/download" }',
],
},
'edge-macos': {
defaultRegistryUrlTemplate: 'https://edgeupdates.microsoft.com/api/products',
transformTemplates: [
'{ "releases": [ { "version": $[Product="Stable"].Releases[Platform="MacOS"].ProductVersion } ], "homepage": "https://www.microsoft.com/en-us/edge/download" }',
],
},
'edge-windows': {
defaultRegistryUrlTemplate: 'https://edgeupdates.microsoft.com/api/products',
transformTemplates: [
'{ "releases": [ { "version": $[Product="Stable"].Releases[Platform="Windows" and Architecture="x64"].ProductVersion } ], "homepage": "https://www.microsoft.com/en-us/edge/download" }',
],
},
firefox: {
defaultRegistryUrlTemplate: 'https://product-details.mozilla.org/1.0/firefox_versions.json',
transformTemplates: [
'{ "releases": [ { "version": LATEST_FIREFOX_VERSION } ], "homepage": "https://www.mozilla.org/en-US/firefox/new/" }',
],
},
},
}