Setup Renovate to update third-party parser tests (#13454)

This commit is contained in:
Nicolò Ribaudo 2021-06-15 18:01:22 +02:00 committed by GitHub
parent a3c7497eb7
commit c0eaab13b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,50 @@
{ {
"extends": [ "extends": ["config:base"],
"config:base"
],
"dependencyDashboardApproval": true, "dependencyDashboardApproval": true,
"labels": ["PR: Dependency ⬆️", "repo automation 🤖" ], "labels": ["PR: Dependency ⬆️", "repo automation 🤖"],
"postUpdateOptions": ["yarnDedupeHighest"], "postUpdateOptions": ["yarnDedupeHighest"],
"regexManagers": [
{
"fileMatch": ["^Makefile$"],
"matchStrings": ["TEST262_COMMIT = (?<currentDigest>.*)\\n"],
"datasourceTemplate": "git-refs",
"depNameTemplate": "tests-test262",
"lookupNameTemplate": "https://github.com/tc39/test262.git",
"currentValueTemplate": "main"
},
{
"fileMatch": ["^Makefile$"],
"matchStrings": ["FLOW_COMMIT = (?<currentDigest>.*)\\n"],
"datasourceTemplate": "git-refs",
"depNameTemplate": "tests-flow",
"lookupNameTemplate": "https://github.com/facebook/flow.git",
"currentValueTemplate": "master"
},
{
"fileMatch": ["^Makefile$"],
"matchStrings": ["TYPESCRIPT_COMMIT = (?<currentDigest>.*)\\n"],
"datasourceTemplate": "git-refs",
"depNameTemplate": "tests-typescript",
"lookupNameTemplate": "https://github.com/Microsoft/TypeScript.git",
"currentValueTemplate": "main"
},
{
"fileMatch": ["^Makefile$"],
"matchStrings": ["COMPAT_TABLE_COMMIT=(?<currentDigest>.*)\\n"],
"datasourceTemplate": "git-refs",
"depNameTemplate": "compat-table",
"lookupNameTemplate": "https://github.com/kangax/compat-table.git",
"currentValueTemplate": "gh-pages"
}
],
"packageRules": [ "packageRules": [
{ {
"matchDepTypes": ["dependencies", "devDependencies"], "matchDepTypes": ["dependencies", "devDependencies"],
"rangeStrategy": "replace", "rangeStrategy": "replace",
"ignoreDeps": ["@babel/core-7.12", "@babel/helper-validator-identifier-baseline"] "ignoreDeps": [
"@babel/core-7.12",
"@babel/helper-validator-identifier-baseline"
]
}, },
{ {
"matchPackagePatterns": ["^eslint"], "matchPackagePatterns": ["^eslint"],
@ -22,6 +57,22 @@
{ {
"matchPackagePatterns": ["^gulp"], "matchPackagePatterns": ["^gulp"],
"groupName": "gulp packages" "groupName": "gulp packages"
},
{
"matchPackageNames": ["tests-test262", "tests-flow", "tests-typescript"],
"groupName": "third-party parser tests",
"schedule": ["before 00:05 am on Friday"],
"postUpgradeTasks": {
"commands": [
"yarn install --immutable --skip-builds",
"yarn gulp build-rollup",
"make test-test262-update-allowlist",
"make test-flow-update-allowlist",
"make test-typescript-update-allowlist"
],
"fileFilters": ["scripts/parser-tests/*/allowlist.txt"],
"executionMode": "branch"
}
} }
] ]
} }