Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SonalDeshmukh1 authored May 30, 2024
1 parent 635c2e1 commit 9624a88
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
distribution: 'adopt'
- name: Run 'build install javadoc spotlessCheck rat checkPom resolveDependencies pmdMain' with Gradle
uses: gradle/gradle-build-action@v2
Expand Down Expand Up @@ -70,9 +70,9 @@ jobs:
if: matrix.java == '11'
- name: Java API Check
run: |
GRADLE_JVM_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_VERSION=8 # Use jdk 8 for build
GRADLE_JVM_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_VERSION=11# Use jdk 11 for build
JAVA_TEST_VERSION=${{ matrix.java }}
cp gradlew gradlewStrict
sed -e 's/JAVA_HOME/GRADLE_JVM/g' -i.back gradlewStrict
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
- name: Set JAVA_TEST_PATH to 8
run: |
echo "JAVA_TEST_PATH=${JAVA_HOME_8_X64}" >> $GITHUB_ENV
if: matrix.java == '8'
if: matrix.java == '11'
- name: Set JAVA_TEST_PATH to 11
run: |
echo "JAVA_TEST_PATH=${JAVA_HOME_11_X64}" >> $GITHUB_ENV
Expand All @@ -123,9 +123,9 @@ jobs:
if: matrix.java == '17'
- name: Run unit tests
run: |
GRADLE_JVM_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_VERSION=8 # Use jdk 8 for build
GRADLE_JVM_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_VERSION=11# Use jdk 11 for build
JAVA_TEST_VERSION=${{ matrix.java }}
cp gradlew gradlewStrict
sed -e 's/JAVA_HOME/GRADLE_JVM/g' -i.back gradlewStrict
Expand All @@ -152,7 +152,7 @@ jobs:
matrix:
os: [self-hosted]
distribution: ['adopt']
java: ['8']
java: ['11']
runs-on: ${{ matrix.os }}
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
Expand All @@ -170,9 +170,9 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Run integration tests
run: |
GRADLE_JVM_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_VERSION=8
GRADLE_JVM_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_VERSION=11
JAVA_TEST_VERSION=${{ matrix.java }}
cp gradlew gradlewStrict
sed -e 's/JAVA_HOME/GRADLE_JVM/g' -i.back gradlewStrict
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
matrix:
os: [self-hosted]
distribution: ['adopt']
java: ['8']
java: ['11']
runs-on: ${{ matrix.os }}
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
Expand All @@ -216,10 +216,10 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Run acceptance tests
run: |
GRADLE_JVM_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_VERSION=8
JAVA_TEST_VERSION=8
GRADLE_JVM_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_VERSION=11
JAVA_TEST_VERSION=11
cp gradlew gradlewStrict
sed -e 's/JAVA_HOME/GRADLE_JVM/g' -i.back gradlewStrict
GRADLE_JVM=${GRADLE_JVM_PATH} JAVA_TEST_PATH=${JAVA_TEST_PATH} ./gradlewStrict \
Expand All @@ -228,7 +228,7 @@ jobs:
-PcompileJVMVer=${JAVA_BUILD_VERSION} \
-PtestJVM=${JAVA_TEST_PATH} \
-PtestJVMVer=${JAVA_TEST_VERSION} \
-PtestJava8Home=${JAVA_HOME_8_X64} \
-PtestJava11Home=${JAVA_HOME_11_X64} \
acceptanceTest --console=plain --no-daemon
- uses: actions/upload-artifact@v3
if: failure()
Expand All @@ -243,7 +243,7 @@ jobs:
matrix:
os: [self-hosted]
distribution: ['adopt']
java: ['8']
java: ['11']
runs-on: ${{ matrix.os }}
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
Expand All @@ -258,10 +258,10 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Run wan distributed tests
run: |
GRADLE_JVM_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_VERSION=8
JAVA_TEST_VERSION=8
GRADLE_JVM_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_VERSION=11
JAVA_TEST_VERSION=11
cp gradlew gradlewStrict
sed -e 's/JAVA_HOME/GRADLE_JVM/g' -i.back gradlewStrict
GRADLE_JVM=${GRADLE_JVM_PATH} JAVA_TEST_PATH=${JAVA_TEST_PATH} ./gradlewStrict \
Expand All @@ -272,7 +272,7 @@ jobs:
-PcompileJVMVer=${JAVA_BUILD_VERSION} \
-PtestJVM=${JAVA_TEST_PATH} \
-PtestJVMVer=${JAVA_TEST_VERSION} \
-PtestJava8Home=${JAVA_HOME_8_X64} \
-PtestJava11Home=${JAVA_HOME_11_X64} \
geode-wan:distributedTest --console=plain --no-daemon
- uses: actions/upload-artifact@v3
if: failure()
Expand All @@ -287,7 +287,7 @@ jobs:
matrix:
os: [self-hosted]
distribution: ['adopt']
java: ['8']
java: ['11']
runs-on: ${{ matrix.os }}
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
Expand All @@ -302,10 +302,10 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Run cq distributed tests
run: |
GRADLE_JVM_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_VERSION=8
JAVA_TEST_VERSION=8
GRADLE_JVM_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_VERSION=11
JAVA_TEST_VERSION=11
cp gradlew gradlewStrict
sed -e 's/JAVA_HOME/GRADLE_JVM/g' -i.back gradlewStrict
GRADLE_JVM=${GRADLE_JVM_PATH} JAVA_TEST_PATH=${JAVA_TEST_PATH} ./gradlewStrict \
Expand All @@ -316,7 +316,7 @@ jobs:
-PcompileJVMVer=${JAVA_BUILD_VERSION} \
-PtestJVM=${JAVA_TEST_PATH} \
-PtestJVMVer=${JAVA_TEST_VERSION} \
-PtestJava8Home=${JAVA_HOME_8_X64} \
-PtestJava11Home=${JAVA_HOME_11_X64} \
geode-cq:distributedTest --console=plain --no-daemon
- uses: actions/upload-artifact@v3
if: failure()
Expand All @@ -331,7 +331,7 @@ jobs:
matrix:
os: [self-hosted]
distribution: ['adopt']
java: ['8']
java: ['11']
runs-on: ${{ matrix.os }}
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
Expand All @@ -346,10 +346,10 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Run lucene distributed tests
run: |
GRADLE_JVM_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_VERSION=8
JAVA_TEST_VERSION=8
GRADLE_JVM_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_VERSION=11
JAVA_TEST_VERSION=11
cp gradlew gradlewStrict
sed -e 's/JAVA_HOME/GRADLE_JVM/g' -i.back gradlewStrict
GRADLE_JVM=${GRADLE_JVM_PATH} JAVA_TEST_PATH=${JAVA_TEST_PATH} ./gradlewStrict \
Expand All @@ -360,7 +360,7 @@ jobs:
-PcompileJVMVer=${JAVA_BUILD_VERSION} \
-PtestJVM=${JAVA_TEST_PATH} \
-PtestJVMVer=${JAVA_TEST_VERSION} \
-PtestJava8Home=${JAVA_HOME_8_X64} \
-PtestJava11Home=${JAVA_HOME_11_X64} \
geode-lucene:distributedTest --console=plain --no-daemon
- uses: actions/upload-artifact@v3
if: failure()
Expand All @@ -375,7 +375,7 @@ jobs:
matrix:
os: [self-hosted]
distribution: ['adopt']
java: ['8']
java: ['11']
runs-on: ${{ matrix.os }}
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
Expand All @@ -390,10 +390,10 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Run gfsh, web-mgmt, web distributed tests
run: |
GRADLE_JVM_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_PATH=${JAVA_HOME_8_X64}
JAVA_BUILD_VERSION=8
JAVA_TEST_VERSION=8
GRADLE_JVM_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_PATH=${JAVA_HOME_11_X64}
JAVA_BUILD_VERSION=11
JAVA_TEST_VERSION=11
cp gradlew gradlewStrict
sed -e 's/JAVA_HOME/GRADLE_JVM/g' -i.back gradlewStrict
GRADLE_JVM=${GRADLE_JVM_PATH} JAVA_TEST_PATH=${JAVA_TEST_PATH} ./gradlewStrict \
Expand All @@ -403,7 +403,7 @@ jobs:
-PcompileJVMVer=${JAVA_BUILD_VERSION} \
-PtestJVM=${JAVA_TEST_PATH} \
-PtestJVMVer=${JAVA_TEST_VERSION} \
-PtestJava8Home=${JAVA_HOME_8_X64} \
-PtestJava11Home=${JAVA_HOME_11_X64} \
geode-gfsh:distributedTest \
geode-web:distributedTest \
geode-web-management:distributedTest --console=plain --no-daemon
Expand Down

0 comments on commit 9624a88

Please sign in to comment.