0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-12-22 21:48:32 +00:00
renovatebot_renovate/lib/modules/manager/github-actions/__snapshots__/extract.spec.ts.snap

251 lines
9.3 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`modules/manager/github-actions/extract extractPackageFile() extracts multiple action tag lines from yaml configuration file 1`] = `
[
{
"autoReplaceStringTemplate": "{{depName}}/shellcheck@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
"commitMessageTopic": "{{{depName}}} action",
"currentValue": "master",
"datasource": "github-tags",
"depName": "actions/bin",
"depType": "action",
"replaceString": "actions/bin/shellcheck@master",
"versioning": "docker",
},
{
"autoReplaceStringTemplate": "{{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
"commitMessageTopic": "{{{depName}}} action",
"currentDigest": "c308fdd69d26ed66f4506ebd74b180abe5362145",
"currentValue": "v1.1.0",
"datasource": "github-tags",
"depName": "docker/setup-qemu-action",
"depType": "action",
"replaceString": "docker/setup-qemu-action@c308fdd69d26ed66f4506ebd74b180abe5362145 # renovate: tag=v1.1.0",
"versioning": "docker",
},
{
"autoReplaceStringTemplate": "{{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
"commitMessageTopic": "{{{depName}}} action",
"currentValue": "1.0.0",
"datasource": "github-tags",
"depName": "actions/checkout",
"depType": "action",
"replaceString": "actions/checkout@1.0.0",
"versioning": "docker",
},
{
"autoReplaceStringTemplate": "{{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
"commitMessageTopic": "{{{depName}}} action",
"currentDigest": "c308fdd69d26ed66f4506ebd74b180abe5362145",
"currentValue": undefined,
"datasource": "github-tags",
"depName": "docker/setup-qemu-action",
"depType": "action",
"replaceString": "docker/setup-qemu-action@c308fdd69d26ed66f4506ebd74b180abe5362145",
"versioning": "docker",
},
{
"autoReplaceStringTemplate": "{{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
"commitMessageTopic": "{{{depName}}} action",
"currentValue": "v2",
"datasource": "github-tags",
"depName": "docker/build-push-action",
"depType": "action",
"replaceString": "docker/build-push-action@v2",
"versioning": "docker",
},
{
"autoReplaceStringTemplate": "{{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
"commitMessageTopic": "{{{depName}}} action",
"currentDigest": "ec3a7ce113134d7a93b817d10a8272cb61118579",
"currentValue": "v2.4.0",
"datasource": "github-tags",
"depName": "actions/checkout",
"depType": "action",
"replaceString": "actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # tag=v2.4.0",
"versioning": "docker",
},
{
"autoReplaceStringTemplate": "{{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
"commitMessageTopic": "{{{depName}}} action",
"currentDigest": "16499b5e05bf2e26879000db0c1d13f7e13fa3af",
"currentValue": "v1.0.7",
"datasource": "github-tags",
"depName": "actions-rs/toolchain",
"depType": "action",
"replaceString": "actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # renovate: tag=v1.0.7",
"versioning": "docker",
},
{
"autoReplaceStringTemplate": "{{depName}}@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
"commitMessageTopic": "{{{depName}}} action",
"currentValue": "v1.0.3",
"datasource": "github-tags",
"depName": "actions-rs/cargo",
"depType": "action",
"replaceString": "actions-rs/cargo@v1.0.3",
"versioning": "docker",
},
{
"autoReplaceStringTemplate": "{{depName}}-{{newValue}}",
"currentValue": "latest",
"datasource": "github-runners",
"depName": "ubuntu",
"depType": "github-runner",
"replaceString": "ubuntu-latest",
"skipReason": "invalid-version",
},
{
"autoReplaceStringTemplate": "{{depName}}-{{newValue}}",
"currentValue": "latest",
"datasource": "github-runners",
"depName": "ubuntu",
"depType": "github-runner",
"replaceString": "ubuntu-latest",
"skipReason": "invalid-version",
},
{
"autoReplaceStringTemplate": "{{depName}}-{{newValue}}",
"currentValue": "latest",
"datasource": "github-runners",
"depName": "ubuntu",
"depType": "github-runner",
"replaceString": "ubuntu-latest",
"skipReason": "invalid-version",
},
]
`;
exports[`modules/manager/github-actions/extract extractPackageFile() extracts multiple docker image lines from yaml configuration file 1`] = `
[
{
"autoReplaceStringTemplate": "{{depName}}/shellcheck@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
"commitMessageTopic": "{{{depName}}} action",
"currentValue": "master",
"datasource": "github-tags",
"depName": "actions/bin",
"depType": "action",
"replaceString": "actions/bin/shellcheck@master",
"versioning": "docker",
},
{
"autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"currentDigest": undefined,
"currentValue": undefined,
"datasource": "docker",
"depName": "replicated/dockerfilelint",
"depType": "docker",
"replaceString": "replicated/dockerfilelint",
},
{
"autoReplaceStringTemplate": "{{depName}}/cli@{{#if newDigest}}{{newDigest}}{{#if newValue}} # {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}{{/unless}}",
"commitMessageTopic": "{{{depName}}} action",
"currentValue": "master",
"datasource": "github-tags",
"depName": "actions/docker",
"depType": "action",
"replaceString": "actions/docker/cli@master",
"versioning": "docker",
},
{
"autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"currentDigest": "sha256:7b65413af120ec5328077775022c78101f103258a1876ec2f83890bce416e896",
"currentValue": "6",
"datasource": "docker",
"depName": "node",
"depType": "docker",
"replaceString": "node:6@sha256:7b65413af120ec5328077775022c78101f103258a1876ec2f83890bce416e896",
},
{
"autoReplaceStringTemplate": "{{depName}}-{{newValue}}",
"currentValue": "latest",
"datasource": "github-runners",
"depName": "ubuntu",
"depType": "github-runner",
"replaceString": "ubuntu-latest",
"skipReason": "invalid-version",
},
{
"autoReplaceStringTemplate": "{{depName}}-{{newValue}}",
"currentValue": "latest",
"datasource": "github-runners",
"depName": "ubuntu",
"depType": "github-runner",
"replaceString": "ubuntu-latest",
"skipReason": "invalid-version",
},
{
"autoReplaceStringTemplate": "{{depName}}-{{newValue}}",
"currentValue": "latest",
"datasource": "github-runners",
"depName": "ubuntu",
"depType": "github-runner",
"replaceString": "ubuntu-latest",
"skipReason": "invalid-version",
},
{
"autoReplaceStringTemplate": "{{depName}}-{{newValue}}",
"currentValue": "latest",
"datasource": "github-runners",
"depName": "ubuntu",
"depType": "github-runner",
"replaceString": "ubuntu-latest",
"skipReason": "invalid-version",
},
{
"autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"currentDigest": undefined,
"currentValue": "16-bullseye",
"datasource": "docker",
"depName": "node",
"depType": "container",
"replaceString": "node:16-bullseye",
},
{
"autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"currentDigest": undefined,
"currentValue": "5",
"datasource": "docker",
"depName": "redis",
"depType": "service",
"replaceString": "redis:5",
},
{
"autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"currentDigest": undefined,
"currentValue": "10",
"datasource": "docker",
"depName": "postgres",
"depType": "service",
"replaceString": "postgres:10",
},
{
"autoReplaceStringTemplate": "{{depName}}-{{newValue}}",
"currentValue": "latest",
"datasource": "github-runners",
"depName": "ubuntu",
"depType": "github-runner",
"replaceString": "ubuntu-latest",
"skipReason": "invalid-version",
},
{
"autoReplaceStringTemplate": "{{depName}}{{#if newValue}}:{{newValue}}{{/if}}{{#if newDigest}}@{{newDigest}}{{/if}}",
"currentDigest": undefined,
"currentValue": "16-bullseye",
"datasource": "docker",
"depName": "node",
"depType": "container",
"replaceString": "node:16-bullseye",
},
{
"autoReplaceStringTemplate": "{{depName}}-{{newValue}}",
"currentValue": "latest",
"datasource": "github-runners",
"depName": "ubuntu",
"depType": "github-runner",
"replaceString": "ubuntu-latest",
"skipReason": "invalid-version",
},
]
`;