mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-06-06 08:16:11 +02:00
Test coverage: Verify local build cache is restored with gradle-user-home
This commit is contained in:
parent
75e00ee3d1
commit
a587e93714
3 changed files with 27 additions and 0 deletions
|
@ -9,3 +9,11 @@ repositories {
|
|||
dependencies {
|
||||
testImplementation('junit:junit:4.12')
|
||||
}
|
||||
|
||||
tasks.named("test").configure {
|
||||
doLast {
|
||||
if (System.properties.verifyCachedBuild) {
|
||||
throw new RuntimeException("Build was not cached: unexpected execution of test task")
|
||||
}
|
||||
}
|
||||
}
|
1
__tests__/samples/basic/gradle.properties
Normal file
1
__tests__/samples/basic/gradle.properties
Normal file
|
@ -0,0 +1 @@
|
|||
org.gradle.caching=true
|
Loading…
Add table
Add a link
Reference in a new issue