Skip to content

Commit ba170c1

Browse files
committed
fix: update configs & validation
1 parent dcae35c commit ba170c1

File tree

3 files changed

+30
-19
lines changed

3 files changed

+30
-19
lines changed

.github/workflows/validate.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- '**.json'
9+
- '.github/workflows/validate.yml'
710
pull_request:
811
branches:
912
- main
13+
paths:
14+
- '**.json'
15+
- '.github/workflows/validate.yml'
1016

1117
jobs:
1218
validate:
@@ -20,5 +26,17 @@ jobs:
2026
with:
2127
node-version: 'lts/*'
2228

23-
- name: Validate Renovate Config
24-
run: npx --yes --package renovate -- renovate-config-validator
29+
- name: Validate default config (renovate.json)
30+
run: npx --yes --package renovate -- renovate-config-validator --strict
31+
32+
- name: Validate main preset (main.json)
33+
run: npx --yes --package renovate -- renovate-config-validator --strict main.json
34+
35+
- name: Validate default preset (default.json)
36+
run: npx --yes --package renovate -- renovate-config-validator --strict default.json
37+
38+
- name: Validate weekend schedule preset
39+
run: npx --yes --package renovate -- renovate-config-validator --strict schedule-weekend.json
40+
41+
- name: Validate hacktoberfest schedule preset
42+
run: npx --yes --package renovate -- renovate-config-validator --strict schedule-hacktoberfest.json

main.json

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,17 @@
66
"config:recommended",
77
"helpers:pinGitHubActionDigests"
88
],
9+
"major": {
10+
"dependencyDashboardApproval": true
11+
},
12+
"rebaseWhen": "conflicted",
913
"prConcurrentLimit": 5,
1014
"prCreation": "not-pending",
1115
"internalChecksFilter": "strict",
1216
"dependencyDashboard": true,
13-
"major": {
14-
"dependencyDashboardApproval": true
15-
},
17+
"minimumReleaseAge": "7 days",
18+
"minimumReleaseAgeBehaviour": "timestamp-optional",
1619
"packageRules": [
17-
{
18-
"matchDatasources": [
19-
"npm",
20-
"docker",
21-
"github-tags",
22-
"github-releases",
23-
"terraform-provider",
24-
"node-version"
25-
],
26-
"minimumReleaseAge": "7 days",
27-
"minimumReleaseAgeBehaviour": "timestamp-optional"
28-
},
2920
{
3021
"matchUpdateTypes": [
3122
"minor",

renovate.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"extends": ["github>freecodecamp/renovate-config"]
3-
}
2+
"extends": [
3+
"github>freecodecamp/renovate-config"
4+
]
5+
}

0 commit comments

Comments
 (0)