mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-28 11:10:59 -05:00
Test configuration-cache compatibility
This commit is contained in:
parent
a0fdbb009a
commit
fa27d06744
1 changed files with 14 additions and 1 deletions
|
@ -8,7 +8,6 @@ class TestDependencyGraph extends BaseInitScriptTest {
|
||||||
static final List<TestGradleVersion> NO_DEPENDENCY_GRAPH_VERSIONS = [GRADLE_3_X, GRADLE_4_X]
|
static final List<TestGradleVersion> NO_DEPENDENCY_GRAPH_VERSIONS = [GRADLE_3_X, GRADLE_4_X]
|
||||||
static final List<TestGradleVersion> DEPENDENCY_GRAPH_VERSIONS = ALL_VERSIONS - NO_DEPENDENCY_GRAPH_VERSIONS
|
static final List<TestGradleVersion> DEPENDENCY_GRAPH_VERSIONS = ALL_VERSIONS - NO_DEPENDENCY_GRAPH_VERSIONS
|
||||||
|
|
||||||
|
|
||||||
def "does not produce dependency graph when not enabled"() {
|
def "does not produce dependency graph when not enabled"() {
|
||||||
assumeTrue testGradleVersion.compatibleWithCurrentJvm
|
assumeTrue testGradleVersion.compatibleWithCurrentJvm
|
||||||
|
|
||||||
|
@ -35,6 +34,20 @@ class TestDependencyGraph extends BaseInitScriptTest {
|
||||||
testGradleVersion << DEPENDENCY_GRAPH_VERSIONS
|
testGradleVersion << DEPENDENCY_GRAPH_VERSIONS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Dependency-graph plugin doesn't support config-cache for 8.0 of Gradle
|
||||||
|
def "produces dependency graph with configuration-cache on latest Gradle"() {
|
||||||
|
assumeTrue testGradleVersion.compatibleWithCurrentJvm
|
||||||
|
|
||||||
|
when:
|
||||||
|
run(['help'], initScript, testGradleVersion.gradleVersion, [], envVars)
|
||||||
|
|
||||||
|
then:
|
||||||
|
assert reportFile.exists()
|
||||||
|
|
||||||
|
where:
|
||||||
|
testGradleVersion << [GRADLE_8_X]
|
||||||
|
}
|
||||||
|
|
||||||
def "warns and produces no dependency graph when enabled for older Gradle versions"() {
|
def "warns and produces no dependency graph when enabled for older Gradle versions"() {
|
||||||
assumeTrue testGradleVersion.compatibleWithCurrentJvm
|
assumeTrue testGradleVersion.compatibleWithCurrentJvm
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue