From 7493cb8c71ba718ee3c464236381e54e87de65c8 Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Sun, 11 Dec 2022 18:21:23 +0100 Subject: [PATCH] chore: move `renovate-config-validator` to GH Actions (#233) * chore: move `renovate-config-validator` to GH Actions * chore(renovate): run lock file maintenance on Saturday --- .github/workflows/validate-renovate-config.yml | 17 +++++++++++++++++ .pre-commit-config.yaml | 5 ----- renovate.json5 | 16 +++++++++------- 3 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/validate-renovate-config.yml diff --git a/.github/workflows/validate-renovate-config.yml b/.github/workflows/validate-renovate-config.yml new file mode 100644 index 00000000..c1e4270f --- /dev/null +++ b/.github/workflows/validate-renovate-config.yml @@ -0,0 +1,17 @@ +name: validate-renovate-config + +on: + pull_request: + paths: [renovate.json5] + push: + branches: [main] + +jobs: + validate-renovate-config: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "18" # renovate: datasource=node depName=node versioning=node + - run: npx -p renovate renovate-config-validator diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 878d5947..e6bcbdea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,8 +38,3 @@ repos: rev: "v1.9.0" hooks: - id: python-check-blanket-noqa - - - repo: https://github.com/renovatebot/pre-commit-hooks - rev: "34.54.0" - hooks: - - id: renovate-config-validator diff --git a/renovate.json5 b/renovate.json5 index 6ea5d19d..a3b4117e 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -7,8 +7,6 @@ "config:base", // https://docs.renovatebot.com/presets-default/#enableprecommit ":enablePreCommit", - // https://docs.renovatebot.com/presets-default/#maintainlockfilesweekly - ":maintainLockFilesWeekly", // https://docs.renovatebot.com/presets-default/#prhourlylimitnone ":prHourlyLimitNone", // https://docs.renovatebot.com/presets-default/#rebasestaleprs @@ -18,6 +16,15 @@ // https://docs.renovatebot.com/configuration-options/#labels labels: ["dependencies"], + // https://docs.renovatebot.com/configuration-options/#schedule + schedule: ["on saturday"], + + // https://docs.renovatebot.com/configuration-options/#lockfilemaintenance + lockFileMaintenance: { + enabled: true, + schedule: ["on saturday"], + }, + // https://docs.renovatebot.com/configuration-options/#regexmanagers regexManagers: [ { @@ -29,9 +36,4 @@ datasourceTemplate: "pypi", }, ], - - // https://docs.renovatebot.com/configuration-options/#schedule - schedule: [ - "on saturday" - ] }