Skip to content

Commit

Permalink
Run dependencyGuard task during CI
Browse files Browse the repository at this point in the history
Run the `dependencyGuard` task during CI, which will fail if there are
detected changes.

Also update the Renovate config to run the `dependencyGuardBaseline`
task, otherwise the auto-generated PRs would fail.

Change-Id: If5f2b18a4c765bd38a3353df2adaaa91cf1739c3
  • Loading branch information
jdkoren committed Nov 30, 2023
1 parent a7fb019 commit f551f90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,10 @@
"matchPackageNames": ["com.google.protobuf"],
"allowedVersions": "<=0.8.19"
}
]
],
"postUpgradeTasks": {
"commands": [
"./gradlew app:dependencyGuardBaseline app-nia-catalog:dependencyGuardBaseline"
]
}
}
3 changes: 3 additions & 0 deletions .github/workflows/Build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
- name: Check spotless
run: ./gradlew spotlessCheck --init-script gradle/init.gradle.kts --no-configuration-cache

- name: Check Dependency Guard
run: ./gradlew app:dependencyGuard app-nia-catalog:dependencyGuard

- name: Run all local screenshot tests (Roborazzi)
id: screenshotsverify
continue-on-error: true
Expand Down

0 comments on commit f551f90

Please sign in to comment.