From ce8eeabf9eb819bb4327bc59f94f6ce5e8e7df7f Mon Sep 17 00:00:00 2001 From: Vadim Aleksandrov Date: Mon, 15 Jul 2024 16:29:58 +0300 Subject: [PATCH] chore(renovate): add renovate configuration and lint github workflow --- .github/workflows/lint-renovate.yaml | 19 ++++++++++++++++++ .renovaterc | 29 ++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/lint-renovate.yaml create mode 100644 .renovaterc diff --git a/.github/workflows/lint-renovate.yaml b/.github/workflows/lint-renovate.yaml new file mode 100644 index 0000000..852f86d --- /dev/null +++ b/.github/workflows/lint-renovate.yaml @@ -0,0 +1,19 @@ +name: Lint renovate configuration + +on: + push: + branches: [master] + paths: + - .renovaterc + - ".github/workflows/lint-renovate.yaml" + pull_request: + paths: + - .renovaterc + - ".github/workflows/lint-renovate.yaml" +jobs: + validate: + runs-on: ubuntu-latest + timeout-minutes: 3 + steps: + - uses: actions/checkout@v4 + - uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.0.1 diff --git a/.renovaterc b/.renovaterc new file mode 100644 index 0000000..62e5730 --- /dev/null +++ b/.renovaterc @@ -0,0 +1,29 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended", + ":disableRateLimiting", + ":disableVulnerabilityAlerts" + ], + "labels": [ + "dependencies" + ], + "postUpdateOptions": [ + "gomodTidy", + "gomodUpdateImportPaths" + ], + "reviewersFromCodeOwners": true, + "enabledManagers": [ + "gomod", + "dockerfile", + "github-actions" + ], + "packageRules": [ + { + "matchDatasources": [ + "golang-version" + ], + "rangeStrategy": "bump" + } + ] +}