Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Commit 77a146b

Browse files
committed
Add logic to generate Renovate postUpgradeTasks
We generate section `postUpgradeTasks` in `renovate.json` for components which have golden tests enabled. To determine the command to execute, we check if the component has matrix tests configured (based on parameter `testMatrix`). We use the `make gen-golden-all` as the command for components with matrix tests and `make gen-golden` for other components.
1 parent c57bfeb commit 77a146b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

moduleroot/renovate.json.erb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44
":gitSignOff",
55
":disableDependencyDashboard"
66
],
7+
<%- if @configs['feature_goldenTests'] -%>
8+
"postUpgradeTasks": {
9+
"commands": [
10+
<%- if !@configs['testMatrix'].empty? && !@configs['testMatrix']['entries'].empty? -%>
11+
"make gen-golden-all"
12+
<%- else -%>
13+
"make gen-golden"
14+
<%- end -%>
15+
],
16+
"fileFilters": [ "tests/golden/**" ],
17+
"executionMode": "update"
18+
},
19+
"suppressNotifications": [ "artifactErrors" ],
20+
<%- end -%>
721
"labels": [
822
"dependency"
923
]

0 commit comments

Comments
 (0)