From 757798e3726e5a4dd4b31b4f44bb4d5296533e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Wed, 9 Nov 2022 16:20:08 +0100 Subject: [PATCH] build: include e2e tests in renovate config --- renovate.json5 | 296 ++------------------------- scripts/renovate-config-generator.js | 17 +- 2 files changed, 33 insertions(+), 280 deletions(-) diff --git a/renovate.json5 b/renovate.json5 index 51abaddf6f619..71687bb24adb9 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -17,7 +17,8 @@ "package.json", "packages/**", "starters/**", - "examples/**" + "examples/**", + "e2e-tests/**" ], "major": { "dependencyDashboardApproval": true @@ -97,6 +98,19 @@ "groupSlug": "starters-examples-major", "dependencyDashboardApproval": false }, + { + "groupName": "E2E tests", + "commitMessageTopic": "e2e-tests", + "matchPaths": [ + "e2e-tests/**" + ], + "schedule": "before 7am on Monday", + "matchUpdateTypes": [ + "major" + ], + "groupSlug": "e2e-tests-major", + "dependencyDashboardApproval": false + }, { "extends": [ "monorepo:gatsby" @@ -10366,10 +10380,7 @@ ], "groupName": "minor and patch dependencies for gatsby-plugin-mdx", "groupSlug": "gatsby-plugin-mdx-prod-minor", - "matchPackageNames": [ - "eval", - "style-to-object" - ], + "matchPackageNames": [], "matchUpdateTypes": [ "patch" ], @@ -10413,10 +10424,7 @@ ], "groupName": "major dependencies for gatsby-plugin-mdx", "groupSlug": "gatsby-plugin-mdx-prod-major", - "matchPackageNames": [ - "eval", - "style-to-object" - ], + "matchPackageNames": [], "matchUpdateTypes": [ "major", "minor" @@ -13137,274 +13145,6 @@ "commitMessageSuffix": "{{#unless groupName}} for gatsby-plugin-react-helmet{{/unless}}", "dependencyDashboardApproval": true }, - { - "matchPaths": [ - "packages/gatsby-plugin-remove-trailing-slashes/package.json" - ], - "matchDepTypes": [ - "devDependencies" - ], - "matchUpdateTypes": [ - "patch", - "minor" - ], - "groupName": "[DEV] minor and patch dependencies for gatsby-plugin-remove-trailing-slashes", - "groupSlug": "gatsby-plugin-remove-trailing-slashes-dev-minor", - "automerge": true, - "excludePackageNames": [ - "eslint", - "prettier", - "cross-env", - "execa", - "mini-css-extract-plugin", - "sharp", - "@types/sharp", - "typescript", - "cypress", - "cypress-image-snapshot", - "chalk", - "fs-extra", - "@types/fs-extra", - "cheerio", - "semver", - "@types/semver", - "core-js", - "core-js-compat", - "chokidar" - ], - "excludePackagePatterns": [ - "^@babel", - "^eslint-", - "^@typescript-eslint/", - "^@testing-library/", - "^@parcel/", - "lmdb" - ], - "commitMessageSuffix": "{{#unless groupName}} for gatsby-plugin-remove-trailing-slashes{{/unless}}" - }, - { - "matchPaths": [ - "packages/gatsby-plugin-remove-trailing-slashes/package.json" - ], - "matchDepTypes": [ - "devDependencies" - ], - "matchUpdateTypes": [ - "major" - ], - "groupName": "[DEV] major dependencies for gatsby-plugin-remove-trailing-slashes", - "groupSlug": "gatsby-plugin-remove-trailing-slashes-dev-major", - "automerge": true, - "dependencyDashboardApproval": false, - "excludePackageNames": [ - "eslint", - "prettier", - "cross-env", - "execa", - "mini-css-extract-plugin", - "sharp", - "@types/sharp", - "typescript", - "cypress", - "cypress-image-snapshot", - "chalk", - "fs-extra", - "@types/fs-extra", - "cheerio", - "semver", - "@types/semver", - "core-js", - "core-js-compat", - "chokidar" - ], - "excludePackagePatterns": [ - "^@babel", - "^eslint-", - "^@typescript-eslint/", - "^@testing-library/", - "^@parcel/", - "lmdb" - ], - "commitMessageSuffix": "{{#unless groupName}} for gatsby-plugin-remove-trailing-slashes{{/unless}}" - }, - { - "matchPaths": [ - "packages/gatsby-plugin-remove-trailing-slashes/package.json" - ], - "matchDepTypes": [ - "dependencies" - ], - "matchUpdateTypes": [ - "patch", - "minor" - ], - "groupName": "minor and patch dependencies for gatsby-plugin-remove-trailing-slashes", - "groupSlug": "gatsby-plugin-remove-trailing-slashes-prod-minor", - "excludePackageNames": [ - "eslint", - "prettier", - "cross-env", - "execa", - "mini-css-extract-plugin", - "sharp", - "@types/sharp", - "typescript", - "cypress", - "cypress-image-snapshot", - "chalk", - "fs-extra", - "@types/fs-extra", - "cheerio", - "semver", - "@types/semver", - "core-js", - "core-js-compat", - "chokidar" - ], - "excludePackagePatterns": [ - "^@babel", - "^eslint-", - "^@typescript-eslint/", - "^@testing-library/", - "^@parcel/", - "lmdb" - ], - "commitMessageSuffix": "{{#unless groupName}} for gatsby-plugin-remove-trailing-slashes{{/unless}}" - }, - { - "matchPaths": [ - "packages/gatsby-plugin-remove-trailing-slashes/package.json" - ], - "matchDepTypes": [ - "dependencies" - ], - "matchUpdateTypes": [ - "major" - ], - "groupName": "major dependencies for gatsby-plugin-remove-trailing-slashes", - "groupSlug": "gatsby-plugin-remove-trailing-slashes-prod-major", - "excludePackageNames": [ - "eslint", - "prettier", - "cross-env", - "execa", - "mini-css-extract-plugin", - "sharp", - "@types/sharp", - "typescript", - "cypress", - "cypress-image-snapshot", - "chalk", - "fs-extra", - "@types/fs-extra", - "cheerio", - "semver", - "@types/semver", - "core-js", - "core-js-compat", - "chokidar" - ], - "excludePackagePatterns": [ - "^@babel", - "^eslint-", - "^@typescript-eslint/", - "^@testing-library/", - "^@parcel/", - "lmdb" - ], - "commitMessageSuffix": "{{#unless groupName}} for gatsby-plugin-remove-trailing-slashes{{/unless}}", - "dependencyDashboardApproval": true - }, - { - "matchPaths": [ - "packages/gatsby-plugin-remove-trailing-slashes/package.json" - ], - "matchDepTypes": [ - "dependencies" - ], - "groupName": "minor and patch dependencies for gatsby-plugin-remove-trailing-slashes", - "groupSlug": "gatsby-plugin-remove-trailing-slashes-prod-minor", - "matchPackageNames": [], - "matchUpdateTypes": [ - "patch" - ], - "excludePackageNames": [ - "eslint", - "prettier", - "cross-env", - "execa", - "mini-css-extract-plugin", - "sharp", - "@types/sharp", - "typescript", - "cypress", - "cypress-image-snapshot", - "chalk", - "fs-extra", - "@types/fs-extra", - "cheerio", - "semver", - "@types/semver", - "core-js", - "core-js-compat", - "chokidar" - ], - "excludePackagePatterns": [ - "^@babel", - "^eslint-", - "^@typescript-eslint/", - "^@testing-library/", - "^@parcel/", - "lmdb" - ], - "commitMessageSuffix": "{{#unless groupName}} for gatsby-plugin-remove-trailing-slashes{{/unless}}" - }, - { - "matchPaths": [ - "packages/gatsby-plugin-remove-trailing-slashes/package.json" - ], - "matchDepTypes": [ - "dependencies" - ], - "groupName": "major dependencies for gatsby-plugin-remove-trailing-slashes", - "groupSlug": "gatsby-plugin-remove-trailing-slashes-prod-major", - "matchPackageNames": [], - "matchUpdateTypes": [ - "major", - "minor" - ], - "excludePackageNames": [ - "eslint", - "prettier", - "cross-env", - "execa", - "mini-css-extract-plugin", - "sharp", - "@types/sharp", - "typescript", - "cypress", - "cypress-image-snapshot", - "chalk", - "fs-extra", - "@types/fs-extra", - "cheerio", - "semver", - "@types/semver", - "core-js", - "core-js-compat", - "chokidar" - ], - "excludePackagePatterns": [ - "^@babel", - "^eslint-", - "^@typescript-eslint/", - "^@testing-library/", - "^@parcel/", - "lmdb" - ], - "commitMessageSuffix": "{{#unless groupName}} for gatsby-plugin-remove-trailing-slashes{{/unless}}", - "dependencyDashboardApproval": true - }, { "matchPaths": [ "packages/gatsby-plugin-sass/package.json" @@ -21117,7 +20857,6 @@ "groupName": "minor and patch dependencies for gatsby-source-contentful", "groupSlug": "gatsby-source-contentful-prod-minor", "matchPackageNames": [ - "axios", "url" ], "matchUpdateTypes": [ @@ -21164,7 +20903,6 @@ "groupName": "major dependencies for gatsby-source-contentful", "groupSlug": "gatsby-source-contentful-prod-major", "matchPackageNames": [ - "axios", "url" ], "matchUpdateTypes": [ diff --git a/scripts/renovate-config-generator.js b/scripts/renovate-config-generator.js index 2a4b6a16387f9..52acd5ab0bc56 100644 --- a/scripts/renovate-config-generator.js +++ b/scripts/renovate-config-generator.js @@ -221,6 +221,15 @@ const defaultPackageRules = [ groupSlug: `starters-examples-major`, dependencyDashboardApproval: false, }, + { + groupName: `E2E tests`, + commitMessageTopic: `e2e-tests`, + matchPaths: [`e2e-tests/**`], + schedule: `before 7am on Monday`, + matchUpdateTypes: [`major`], + groupSlug: `e2e-tests-major`, + dependencyDashboardApproval: false, + }, { extends: [`monorepo:gatsby`], commitMessageTopic: `starters and examples Gatsby packages`, @@ -353,7 +362,13 @@ const renovateConfig = { `:ignoreModulesAndTests`, `:enableVulnerabilityAlerts`, ], - includePaths: [`package.json`, `packages/**`, `starters/**`, `examples/**`], + includePaths: [ + `package.json`, + `packages/**`, + `starters/**`, + `examples/**`, + `e2e-tests/**`, + ], major: { dependencyDashboardApproval: true, },