mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-06-07 16:56:12 +02:00
Test coverage: Verify configuration-cache is restored with project-dot-gradle
This commit is contained in:
parent
a587e93714
commit
436390bd4e
2 changed files with 11 additions and 31 deletions
|
@ -11,6 +11,10 @@ dependencies {
|
|||
}
|
||||
|
||||
tasks.named("test").configure {
|
||||
// Use an environment variable to bypass config-cache checks
|
||||
if (System.getenv('VERIFY_CACHED_CONFIGURATION') != null) {
|
||||
throw new RuntimeException("Configuration was not cached: unexpected configuration of test task")
|
||||
}
|
||||
doLast {
|
||||
if (System.properties.verifyCachedBuild) {
|
||||
throw new RuntimeException("Build was not cached: unexpected execution of test task")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue