Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ updates:
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
open-pull-requests-limit: 0

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
open-pull-requests-limit: 0

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
open-pull-requests-limit: 0

- package-ecosystem: "pip"
directory: "/ocr"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
open-pull-requests-limit: 0
51 changes: 51 additions & 0 deletions .github/workflows/renovate-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Renovate verification
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]

permissions:
contents: read

concurrency:
group: renovate-verify-${{ github.event.pull_request.number }}
cancel-in-progress: true

jobs:
verify:
name: Renovate dependency CI
runs-on: ubuntu-24.04
timeout-minutes: 40
steps:
- name: Select the dependency verification scope
id: scope
env:
IS_DEPENDENCY_UPDATE: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.event.pull_request.user.id == 29139614 && startsWith(github.head_ref, 'renovate/') && github.head_ref != 'renovate/configure' }}
IS_ONBOARDING: ${{ github.event.pull_request.head.repo.full_name == github.repository && (github.head_ref == 'renovate/configure' || github.head_ref == 'chore/renovate-onboarding') }}
run: |
echo "deps=$IS_DEPENDENCY_UPDATE" >> "$GITHUB_OUTPUT"
echo "setup=$IS_ONBOARDING" >> "$GITHUB_OUTPUT"
if [[ "$IS_DEPENDENCY_UPDATE" == false && "$IS_ONBOARDING" == false ]]; then
echo "This pull request uses the repository's normal CI."
fi
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
if: steps.scope.outputs.deps == 'true' || steps.scope.outputs.setup == 'true'
with:
persist-credentials: false
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
if: steps.scope.outputs.setup == 'true'
with:
node-version: '26.13.1'
package-manager-cache: false
- name: Validate the Renovate configuration
if: steps.scope.outputs.setup == 'true'
run: npx --yes --package renovate@45.1.2 -- renovate-config-validator --strict
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5
if: steps.scope.outputs.deps == 'true'
with:
distribution: temurin
java-version: '25'
- name: Test Java application
if: steps.scope.outputs.deps == 'true'
run: |
./mvnw --batch-mode --no-transfer-progress -DfailIfNoTests=true verify
54 changes: 54 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"timezone": "America/Puerto_Rico",
"schedule": [
"* 0-4 * * *"
],
"automergeSchedule": [
"* 0-4 * * *"
],
"updateNotScheduled": false,
"prConcurrentLimit": 2,
"prHourlyLimit": 1,
"commitHourlyLimit": 2,
"minimumReleaseAge": "3 days",
"platformAutomerge": false,
"automergeType": "pr",
"automergeStrategy": "squash",
"automerge": false,
"ignoreTests": false,
"internalChecksAsSuccess": false,
"vulnerabilityAlerts": {
"enabled": false
},
"packageRules": [
{
"description": "Application images are advanced by the existing verified release workflow",
"matchDatasources": [
"docker"
],
"matchPackageNames": [
"ghcr.io/javadevjt/**"
],
"enabled": false
},
{
"description": "Automerge tested dependencies through the protected GitHub CI check",
"matchManagers": [
"maven"
],
"matchFileNames": [
"pom.xml"
],
"matchUpdateTypes": [
"minor",
"patch"
],
"automerge": true,
"matchCurrentVersion": "!/^0[.]/"
}
]
}