Skip to content

Commit

Permalink
Merge pull request #273 from wayfair-incubator/add-dependabot-config
Browse files Browse the repository at this point in the history
Add grouped Dependabot config
  • Loading branch information
draco2003 authored Mar 14, 2024
2 parents 45275c4 + faf8766 commit 71dd4c3
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 63 deletions.
29 changes: 29 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
groups:
github:
patterns:
- "actions/*"
- "octokit/*"
- "github/*"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/"
groups:
dependencies:
patterns:
- "octokit/*"
- "https-proxy-agent"
dev-dependencies:
patterns:
- "@types/*"
- "@vercel/*"
- "eslint*"
- "jest/*"
- "typescript"
- "*"
schedule:
interval: "weekly"
9 changes: 0 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ jobs:
with:
config: '.markdownlint.json'
args: '**/*.md .github/**/*.md'
lint-renovate:
if: ${{ ! github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 🧼 lint renovate config
uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.3
with:
config_file_path: renovate.json
build-changes:
if: ${{ ! github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ jobs:
with:
config: '.markdownlint.json'
args: '**/*.md .github/**/*.md'
lint-renovate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 🧼 lint renovate config
uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.3
with:
config_file_path: renovate.json
build-fork:
if: ${{ github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
Expand Down
47 changes: 1 addition & 46 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,46 +1 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "Renovate configuration recommended by the Wayfair OSPO",
"labels": [
"renovate/{{depName}}"
],
"extends": [
"config:base",
":dependencyDashboard",
":rebaseStalePrs"
],
"schedule": [
"before 3am every weekday"
],
"enabledManagers": [
"github-actions",
"npm"
],
"packageRules": [
{
"matchPackageNames": ["jest", "ts-jest", "@types/jest"],
"matchPackagePrefixes": ["jest-"],
"groupName": "Jest",
"allowedVersions": "28.x"
},
{
"matchPackageNames": ["eslint"],
"matchPackagePrefixes": ["eslint-", "@typescript-eslint/"],
"groupName": "ESLint"
},
{
"matchPackageNames": ["@types/node"],
"groupName": "Node",
"allowedVersions": "17.x"
},
{
"matchPackageNames": ["typescript"],
"groupName": "TypeScript",
"allowedVersions": "4.x"
},
{
"matchManagers": ["github-actions"],
"groupName": "GitHub Actions"
}
]
}
{ "enabled": false }

0 comments on commit 71dd4c3

Please sign in to comment.