diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..1f5495e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,13 @@ +name: Renovate Config Linting +on: + pull_request: + +jobs: + renovate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: 🧼 lint renovate config # Validates changes to renovate.json config file + uses: suzuki-shunsuke/github-action-renovate-config-validator@v0.1.2 + with: + config_file_path: 'renovate.json' diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..a35e709 --- /dev/null +++ b/renovate.json @@ -0,0 +1,33 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": "Renovate configuration for hypernova php repository", + "extends": [ + "config:base", + ":dependencyDashboard", + ":rebaseStalePrs" + ], + "schedule": [ + "before 3am every weekday" + ], + "enabledManagers": [ + "github-actions" + ], + "composer": { + "packageRules": [ + { + "description": "Wait 3 days before opening a PR for new major version updates", + "matchUpdateTypes": ["major"] + }, + { + "description": "Automerge non-major version updates (assuming the CI pipelines pass)", + "matchUpdateTypes": ["patch", "minor"] + } + ] + }, + "packageRules": [ + { + "matchManagers": ["github-actions"], + "groupName": "GitHub Actions" + } + ] +}