From c0eaab13b0a6d49e1fea53a16dfacac0ffc3170e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Tue, 15 Jun 2021 18:01:22 +0200 Subject: [PATCH] Setup Renovate to update third-party parser tests (#13454) --- renovate.json | 61 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/renovate.json b/renovate.json index 2849564106..77a81e7140 100644 --- a/renovate.json +++ b/renovate.json @@ -1,15 +1,50 @@ { - "extends": [ - "config:base" - ], + "extends": ["config:base"], "dependencyDashboardApproval": true, - "labels": ["PR: Dependency ⬆️", "repo automation 🤖" ], + "labels": ["PR: Dependency ⬆️", "repo automation 🤖"], "postUpdateOptions": ["yarnDedupeHighest"], + "regexManagers": [ + { + "fileMatch": ["^Makefile$"], + "matchStrings": ["TEST262_COMMIT = (?.*)\\n"], + "datasourceTemplate": "git-refs", + "depNameTemplate": "tests-test262", + "lookupNameTemplate": "https://github.com/tc39/test262.git", + "currentValueTemplate": "main" + }, + { + "fileMatch": ["^Makefile$"], + "matchStrings": ["FLOW_COMMIT = (?.*)\\n"], + "datasourceTemplate": "git-refs", + "depNameTemplate": "tests-flow", + "lookupNameTemplate": "https://github.com/facebook/flow.git", + "currentValueTemplate": "master" + }, + { + "fileMatch": ["^Makefile$"], + "matchStrings": ["TYPESCRIPT_COMMIT = (?.*)\\n"], + "datasourceTemplate": "git-refs", + "depNameTemplate": "tests-typescript", + "lookupNameTemplate": "https://github.com/Microsoft/TypeScript.git", + "currentValueTemplate": "main" + }, + { + "fileMatch": ["^Makefile$"], + "matchStrings": ["COMPAT_TABLE_COMMIT=(?.*)\\n"], + "datasourceTemplate": "git-refs", + "depNameTemplate": "compat-table", + "lookupNameTemplate": "https://github.com/kangax/compat-table.git", + "currentValueTemplate": "gh-pages" + } + ], "packageRules": [ { "matchDepTypes": ["dependencies", "devDependencies"], "rangeStrategy": "replace", - "ignoreDeps": ["@babel/core-7.12", "@babel/helper-validator-identifier-baseline"] + "ignoreDeps": [ + "@babel/core-7.12", + "@babel/helper-validator-identifier-baseline" + ] }, { "matchPackagePatterns": ["^eslint"], @@ -22,6 +57,22 @@ { "matchPackagePatterns": ["^gulp"], "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" + } } ] }