chore: Update Renovate config (#769)

# Summary

Updates renovate config to use the
[`config:best-practices`](https://docs.renovatebot.com/presets-config/#configbest-practices)
preset rather than the `config:base` preset since `config:base` seems to
be deprecated.

Also updates the `schedule` config to use the
[`schedule:monthly`](https://docs.renovatebot.com/presets-schedule/#schedulemonthly)
preset.

Also adds a pre-submit to run the
[`renovate-config-validator`](https://docs.renovatebot.com/config-validation/)
to ensure that renovate config is valid. This pre-submit will need to be
made required in the repository branch protection rule for `main` in the
repository settings after this PR is merged.

---------

Signed-off-by: Ian Lewis <ianmlewis@gmail.com>
Signed-off-by: Ian Lewis <ianlewis@google.com>
Co-authored-by: Ramon Petgrave <32398091+ramonpetgrave64@users.noreply.github.com>
This commit is contained in:
Ian Lewis
2024-05-16 07:13:09 +09:00
committed by GitHub
co-authored by Ramon Petgrave
parent 138a2348fc
commit 87b5bae6d4
6 changed files with 12695 additions and 23 deletions
+11 -2
View File
@@ -43,7 +43,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@v4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 16
node-version: 20
- run: make eslint
renovate-config-validator:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
- run: make renovate-config-validator
+25 -2
View File
@@ -1,3 +1,26 @@
# Ignore the .git directory (for markdownlint)
.git
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
vendor/
node_modules/
# Go workspace file
go.work
go.work.sum
# goland
.idea
node_modules
vendor
+5 -1
View File
@@ -70,7 +70,7 @@ markdown-toc: node_modules/.installed ## Runs markdown-toc on markdown files.
#####################################################################
.PHONY: lint
lint: golangci-lint eslint yamllint ## Run all linters.
lint: golangci-lint eslint yamllint renovate-config-validator ## Run all linters.
.PHONY: golangci-lint
golangci-lint: ## Runs the golangci-lint linter.
@@ -93,3 +93,7 @@ yamllint: ## Runs the yamllint linter.
extraargs="-f github"; \
fi; \
yamllint -c .yamllint.yaml . $$extraargs
.PHONY: renovate-config-validator
renovate-config-validator: node_modules/.installed ## Runs renovate-config-validator
@npm run renovate-config-validator
+12649 -14
View File
File diff suppressed because it is too large Load Diff
+4 -2
View File
@@ -1,8 +1,10 @@
{
"scripts": {
"markdown-toc": "markdown-toc --bullets='-' -i"
"markdown-toc": "markdown-toc --bullets='-' -i",
"renovate-config-validator": "renovate-config-validator --strict"
},
"devDependencies": {
"markdown-toc": "^1.2.0"
"markdown-toc": "^1.2.0",
"renovate": "37.363.4"
}
}
+1 -2
View File
@@ -1,7 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base", ":gitSignOff"],
"schedule": ["before 4am on the first day of the month"],
"extends": ["config:best-practices", "schedule:monthly"],
"vulnerabilityAlerts": {
"schedule": "before 4am"
},