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

Commit

Permalink
Add logic to generate Renovate postUpgradeTasks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
simu committed Mar 21, 2022
1 parent 539cb83 commit 40f563c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions moduleroot/renovate.json.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@
":gitSignOff",
":disableDependencyDashboard"
],
<%- if @configs['feature_goldenTests'] -%>
"postUpgradeTasks": {
"commands": [
<%- if !@configs['testMatrix'].empty? && !@configs['testMatrix']['entries'].empty? -%>
"make gen-golden-all"
<%- else -%>
"make gen-golden"
<%- end -%>
],
"fileFilters": [ "tests/golden/**" ],
"executionMode": "update"
},
"suppressNotifications": [ "artifactErrors" ],
<%- end -%>
"labels": [
"dependency"
]
Expand Down

0 comments on commit 40f563c

Please sign in to comment.