mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-05-05 14:08:35 +02:00
Move workflow samples under .github
This commit is contained in:
parent
01def677bf
commit
aabb2db775
55 changed files with 402 additions and 402 deletions
22
.github/workflows/samples/groovy-dsl/build.gradle
vendored
Normal file
22
.github/workflows/samples/groovy-dsl/build.gradle
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation('junit:junit:4.12')
|
||||
}
|
||||
|
||||
tasks.named("test").configure {
|
||||
// Echo an output value so we can detect configuration-cache usage
|
||||
println "::set-output name=task_configured::yes"
|
||||
|
||||
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