This repository was archived by the owner on Feb 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-31
lines changed Expand file tree Collapse file tree 1 file changed +1
-31
lines changed Original file line number Diff line number Diff line change 44
44
grep -q 'Eclipse Temurin JDK 1.8' output.txt || (echo "::error::Did not detect preinstalled JDK 1.8" && exit 1)
45
45
grep -q 'Eclipse Temurin JDK 11' output.txt || (echo "::error::Did not detect preinstalled JDK 11" && exit 1)
46
46
grep -q 'Eclipse Temurin JDK 17' output.txt || (echo "::error::Did not detect preinstalled JDK 17" && exit 1)
47
+ grep -q 'Eclipse Temurin JDK 12' output.txt || (echo "::error::Did not detect preinstalled JDK 21" && exit 1)
47
48
48
49
# Test that JDKs provisioned by setup-java are detected
49
50
setup-java-installed-toolchain :
80
81
run : |
81
82
grep -q 'Eclipse Temurin JDK 16' output.txt || (echo "::error::Did not detect setup-java installed JDK 16" && exit 1)
82
83
grep -q 'Eclipse Temurin JDK 20' output.txt || (echo "::error::Did not detect setup-java installed JDK 20" && exit 1)
83
-
84
- # Test that predefined JDK detection property is not overwritten by action
85
- check-no-overwrite :
86
- strategy :
87
- matrix :
88
- os : ${{fromJSON(inputs.runner-os)}}
89
- runs-on : ${{ matrix.os }}
90
- steps :
91
- - name : Checkout sources
92
- uses : actions/checkout@v4
93
- - name : Download distribution if required
94
- uses : ./.github/actions/download-dist
95
- - name : Configure java installations env var in Gradle User Home
96
- shell : bash
97
- run : |
98
- mkdir -p ~/.gradle
99
- echo "org.gradle.java.installations.fromEnv=XXXXX" > ~/.gradle/gradle.properties
100
- - name : Setup Gradle
101
- uses : ./
102
- - name : Check gradle.properties
103
- shell : bash
104
- run : |
105
- cat ~/.gradle/gradle.properties
106
- if grep -q 'org.gradle.java.installations.fromEnv=JAVA_HOME' ~/.gradle/gradle.properties ; then
107
- echo 'Found overwritten fromEnv'
108
- exit 1
109
- fi
110
- if ! grep -q 'org.gradle.java.installations.fromEnv=XXXXX' ~/.gradle/gradle.properties ; then
111
- echo 'Did NOT find original fromEnv'
112
- exit 1
113
- fi
You can’t perform that action at this time.
0 commit comments