mirror of
https://github.com/yanhao98/renovate-example.git
synced 2025-07-13 04:10:49 +08:00
测试
This commit is contained in:
@ -4,7 +4,8 @@
|
|||||||
"validator": "renovate-config-validator ./default.json5",
|
"validator": "renovate-config-validator ./default.json5",
|
||||||
"validator:strict": "renovate-config-validator ./default.json5 --strict",
|
"validator:strict": "renovate-config-validator ./default.json5 --strict",
|
||||||
"validator:npx": "npx --yes --package renovate -- renovate-config-validator --strict",
|
"validator:npx": "npx --yes --package renovate -- renovate-config-validator --strict",
|
||||||
"dry-run:npx": "LOG_LEVEL=debug npx renovate --token= --platform=local --dry-run=full"
|
"dry-run:npx": "LOG_LEVEL=debug npx renovate --token= --platform=local --dry-run=full",
|
||||||
|
"test-regex":"bun --bun test-regex/run.mjs"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"renovate": "^38.124.0",
|
"renovate": "^38.124.0",
|
||||||
|
@ -18,3 +18,11 @@ const filecontent = fs.readFileSync(path.join(__dirname, "file.txt"), "utf8");
|
|||||||
const regex = "# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+):(?<currentValue>\\S+)@(?<currentDigest>\\S+)";
|
const regex = "# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+):(?<currentValue>\\S+)@(?<currentDigest>\\S+)";
|
||||||
extractMatchResult(regex, filecontent);
|
extractMatchResult(regex, filecontent);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
(() => {
|
||||||
|
const regex = "^\\.github/workflows/[^/]+\\.ya?ml$";
|
||||||
|
extractMatchResult(regex, ".github/workflows/中 | 文 : 文件名.yaml");
|
||||||
|
})();
|
||||||
|
|
||||||
|
|
||||||
|
// TODO: run.mjs regex file
|
Reference in New Issue
Block a user