diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 00000000..cc5f6464 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:base" + ], + "packageRules": [ + { + "matchManagers": ["cargo"], + "groupName": "marine-rs-sdk", + "matchPackagePatterns": [ + "marine-rs-sdk", + "marine-rs-sdk-test" + ] + } + ] +} diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml new file mode 100644 index 00000000..f13a7788 --- /dev/null +++ b/.github/workflows/lint-pr.yml @@ -0,0 +1,21 @@ +name: lint PR + +on: + pull_request: + types: + - opened + - edited + - synchronize + +concurrency: + group: "${{ github.workflow }}-${{ github.ref }}" + cancel-in-progress: true + +jobs: + pr: + name: Validate PR title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 72d5381c..d52ed45d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,24 +2,15 @@ name: lint on: pull_request: - types: - - opened - - edited - - synchronize + paths: + - ".github/workflows/**" + - ".github/renovate.json" concurrency: group: "${{ github.workflow }}-${{ github.ref }}" cancel-in-progress: true jobs: - pr: - name: Validate PR title - runs-on: ubuntu-latest - steps: - - uses: amannn/action-semantic-pull-request@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - reviewdog: runs-on: ubuntu-latest steps: @@ -33,3 +24,14 @@ jobs: with: reporter: github-pr-check fail_on_error: true + + renovate: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Renovate Config Validator + uses: tj-actions/renovate-config-validator@v2 + with: + config_file: .github/renovate.json diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 39a2b6e9..00000000 --- a/renovate.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base" - ] -}