@@ -163,7 +163,7 @@ describe('modules/manager/github-actions/extract', () => {
163163 depName : 'pascalgn/automerge-action' ,
164164 depType : 'action' ,
165165 replaceString : '"pascalgn/automerge-action@v0.13.1"' ,
166- versioning : 'semver-partial ' ,
166+ versioning : 'docker ' ,
167167 } ,
168168 {
169169 currentValue : 'v2.3.5' ,
@@ -172,23 +172,23 @@ describe('modules/manager/github-actions/extract', () => {
172172 depType : 'action' ,
173173 replaceString :
174174 'actions/checkout@1e204e9a9253d643386038d443f96446fa156a97 # renovate: tag=v2.3.5' ,
175- versioning : 'semver-partial ' ,
175+ versioning : 'docker ' ,
176176 } ,
177177 {
178178 currentValue : 'v1' ,
179179 datasource : 'github-tags' ,
180180 depName : 'actions/checkout' ,
181181 depType : 'action' ,
182182 replaceString : 'actions/checkout@v1' ,
183- versioning : 'semver-partial ' ,
183+ versioning : 'docker ' ,
184184 } ,
185185 {
186186 currentValue : 'v1.1.2' ,
187187 datasource : 'github-tags' ,
188188 depName : 'actions/checkout' ,
189189 depType : 'action' ,
190190 replaceString : '"actions/checkout@v1.1.2"' ,
191- versioning : 'semver-partial ' ,
191+ versioning : 'docker ' ,
192192 } ,
193193 {
194194 currentValue : '1.37.0-glibc' ,
@@ -236,7 +236,7 @@ describe('modules/manager/github-actions/extract', () => {
236236 depName : 'actions/setup-node' ,
237237 commitMessageTopic : '{{{depName}}} action' ,
238238 datasource : 'github-tags' ,
239- versioning : 'semver-partial ' ,
239+ versioning : 'docker ' ,
240240 depType : 'action' ,
241241 replaceString :
242242 'actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # tag=v3.1.1' ,
@@ -249,7 +249,7 @@ describe('modules/manager/github-actions/extract', () => {
249249 depName : 'actions/setup-node' ,
250250 commitMessageTopic : '{{{depName}}} action' ,
251251 datasource : 'github-tags' ,
252- versioning : 'semver-partial ' ,
252+ versioning : 'docker ' ,
253253 depType : 'action' ,
254254 replaceString :
255255 "'actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561' # tag=v3.1.1" ,
@@ -262,7 +262,7 @@ describe('modules/manager/github-actions/extract', () => {
262262 depName : 'actions/setup-node' ,
263263 commitMessageTopic : '{{{depName}}} action' ,
264264 datasource : 'github-tags' ,
265- versioning : 'semver-partial ' ,
265+ versioning : 'docker ' ,
266266 depType : 'action' ,
267267 replaceString :
268268 '"actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561" # tag=v2.5.1' ,
@@ -275,7 +275,7 @@ describe('modules/manager/github-actions/extract', () => {
275275 depName : 'actions/checkout' ,
276276 commitMessageTopic : '{{{depName}}} action' ,
277277 datasource : 'github-tags' ,
278- versioning : 'semver-partial ' ,
278+ versioning : 'docker ' ,
279279 depType : 'action' ,
280280 replaceString : '"actions/checkout@v2"' ,
281281 autoReplaceStringTemplate :
@@ -286,7 +286,7 @@ describe('modules/manager/github-actions/extract', () => {
286286 depName : 'actions/setup-java' ,
287287 commitMessageTopic : '{{{depName}}} action' ,
288288 datasource : 'github-tags' ,
289- versioning : 'semver-partial ' ,
289+ versioning : 'docker ' ,
290290 depType : 'action' ,
291291 replaceString : '"actions/setup-java@v2"' ,
292292 autoReplaceStringTemplate :
@@ -575,7 +575,7 @@ describe('modules/manager/github-actions/extract', () => {
575575 expect ( res ?. deps [ 0 ] ) . toEqual ( {
576576 depName : 'actions/checkout' ,
577577 commitMessageTopic : '{{{depName}}} action' ,
578- versioning : 'semver-partial ' ,
578+ versioning : 'docker ' ,
579579 depType : 'action' ,
580580 replaceString :
581581 'actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v4' ,
@@ -600,7 +600,7 @@ describe('modules/manager/github-actions/extract', () => {
600600 expect ( res ?. deps [ 0 ] ) . toEqual ( {
601601 depName : 'actions/checkout' ,
602602 commitMessageTopic : '{{{depName}}} action' ,
603- versioning : 'semver-partial ' ,
603+ versioning : 'docker ' ,
604604 depType : 'action' ,
605605 replaceString : 'actions/checkout@c85c95e # v4' ,
606606 autoReplaceStringTemplate :
@@ -776,7 +776,7 @@ describe('modules/manager/github-actions/extract', () => {
776776 depName : 'actions/setup-node' ,
777777 depType : 'action' ,
778778 replaceString : 'actions/setup-node@v3' ,
779- versioning : 'semver-partial ' ,
779+ versioning : 'docker ' ,
780780 } ,
781781 {
782782 autoReplaceStringTemplate :
@@ -787,7 +787,7 @@ describe('modules/manager/github-actions/extract', () => {
787787 depName : 'actions/setup-node' ,
788788 depType : 'action' ,
789789 replaceString : 'actions/setup-node@v3' ,
790- versioning : 'semver-partial ' ,
790+ versioning : 'docker ' ,
791791 } ,
792792 {
793793 autoReplaceStringTemplate :
@@ -798,7 +798,7 @@ describe('modules/manager/github-actions/extract', () => {
798798 depName : 'actions/setup-go' ,
799799 depType : 'action' ,
800800 replaceString : 'actions/setup-go@v5' ,
801- versioning : 'semver-partial ' ,
801+ versioning : 'docker ' ,
802802 } ,
803803 {
804804 autoReplaceStringTemplate :
@@ -809,7 +809,7 @@ describe('modules/manager/github-actions/extract', () => {
809809 depName : 'actions/setup-python' ,
810810 depType : 'action' ,
811811 replaceString : 'actions/setup-python@v3' ,
812- versioning : 'semver-partial ' ,
812+ versioning : 'docker ' ,
813813 } ,
814814 {
815815 autoReplaceStringTemplate :
@@ -820,7 +820,7 @@ describe('modules/manager/github-actions/extract', () => {
820820 depName : 'actions/setup-node' ,
821821 depType : 'action' ,
822822 replaceString : 'actions/setup-node@v3' ,
823- versioning : 'semver-partial ' ,
823+ versioning : 'docker ' ,
824824 } ,
825825 {
826826 depName : 'node' ,
@@ -926,7 +926,7 @@ describe('modules/manager/github-actions/extract', () => {
926926 depName : 'actions/setup-node' ,
927927 depType : 'action' ,
928928 replaceString : 'actions/setup-node@v3' ,
929- versioning : 'semver-partial ' ,
929+ versioning : 'docker ' ,
930930 } ,
931931 {
932932 autoReplaceStringTemplate :
@@ -937,7 +937,7 @@ describe('modules/manager/github-actions/extract', () => {
937937 depName : 'actions/setup-node' ,
938938 depType : 'action' ,
939939 replaceString : 'actions/setup-node@v3' ,
940- versioning : 'semver-partial ' ,
940+ versioning : 'docker ' ,
941941 } ,
942942 {
943943 autoReplaceStringTemplate :
@@ -948,7 +948,7 @@ describe('modules/manager/github-actions/extract', () => {
948948 depName : 'actions/setup-go' ,
949949 depType : 'action' ,
950950 replaceString : 'actions/setup-go@v5' ,
951- versioning : 'semver-partial ' ,
951+ versioning : 'docker ' ,
952952 } ,
953953 {
954954 autoReplaceStringTemplate :
@@ -959,7 +959,7 @@ describe('modules/manager/github-actions/extract', () => {
959959 depName : 'actions/setup-python' ,
960960 depType : 'action' ,
961961 replaceString : 'actions/setup-python@v3' ,
962- versioning : 'semver-partial ' ,
962+ versioning : 'docker ' ,
963963 } ,
964964 {
965965 autoReplaceStringTemplate :
@@ -970,7 +970,7 @@ describe('modules/manager/github-actions/extract', () => {
970970 depName : 'actions/setup-node' ,
971971 depType : 'action' ,
972972 replaceString : 'actions/setup-node@v3' ,
973- versioning : 'semver-partial ' ,
973+ versioning : 'docker ' ,
974974 } ,
975975 {
976976 depName : 'node' ,
@@ -1469,45 +1469,4 @@ describe('modules/manager/github-actions/extract', () => {
14691469 expected ,
14701470 ) ;
14711471 } ) ;
1472-
1473- it . each ( [
1474- {
1475- step : {
1476- uses : 'astral-sh/setup-uv@v7' ,
1477- } ,
1478- expected : {
1479- currentValue : 'v7' ,
1480- datasource : 'github-tags' ,
1481- depName : 'astral-sh/setup-uv' ,
1482- depType : 'action' ,
1483- } ,
1484- } ,
1485- {
1486- step : {
1487- uses : 'astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57' ,
1488- } ,
1489- expected : {
1490- currentDigest : 'cec208311dfd045dd5311c1add060b2062131d57' ,
1491- datasource : 'github-tags' ,
1492- depName : 'astral-sh/setup-uv' ,
1493- depType : 'action' ,
1494- } ,
1495- } ,
1496- ] ) (
1497- 'overrides versioning for actions with Immutable tags: $step.uses' ,
1498- ( { step, expected } ) => {
1499- const yamlContent = yaml . dump ( { jobs : { build : { steps : [ step ] } } } ) ;
1500-
1501- const res = extractPackageFile ( yamlContent , 'workflow.yml' ) ;
1502- expect ( res ?. deps . filter ( ( pkg ) => pkg . depType === 'action' ) ) . toMatchObject (
1503- [
1504- {
1505- versioning :
1506- 'regex:^v?(?<major>\\d+)(\\.(?<minor>\\d+)\\.(?<patch>\\d+))?$' ,
1507- ...expected ,
1508- } ,
1509- ] ,
1510- ) ;
1511- } ,
1512- ) ;
15131472} ) ;
0 commit comments