File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
src/test/groovy/com/github/gradle/node/task Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -57,4 +57,36 @@ tasks.register('getVersionFromSource') {
5757 gv << GRADLE_VERSIONS_UNDER_TEST
5858 }
5959
60+ @IgnoreIf({ System.getProperty("os.name").toLowerCase().contains("windows") })
61+ def 'ensure configuration-cache works with nodeSetup (#gv.version)'() {
62+ given:
63+ gradleVersion = gv
64+
65+ copyResources("fixtures/node")
66+ createFile("gradle.properties") << """
67+ systemProp.os.arch=aarch64
68+ systemProp.os.name="Mac OS X"
69+ """
70+ createFile("build.gradle") << '''
71+ node {
72+ download = false
73+ }
74+ '''
75+
76+ when:
77+ def result1 = build("nodeSetup")
78+
79+ then:
80+ result1.task(":nodeSetup").outcome == TaskOutcome.SKIPPED
81+
82+ when:
83+ def result2 = build("nodeSetup")
84+
85+ then:
86+ result2.task(":nodeSetup").outcome == TaskOutcome.SKIPPED
87+
88+ where:
89+ gv << GRADLE_VERSIONS_UNDER_TEST
90+ }
91+
6092}
You can’t perform that action at this time.
0 commit comments