This is an automated email from the ASF dual-hosted git repository.

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 815dfe6713d Refactor : add JDK 8 CI in nightly CI (#24653) (#24654)
815dfe6713d is described below

commit 815dfe6713dbf027751acd6ec08353c6b974dcf1
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Thu Mar 16 18:49:25 2023 +0800

    Refactor : add JDK 8 CI in nightly CI (#24653) (#24654)
---
 .github/workflows/nightly-ci.yml | 38 +++++++++++++++++++++++++++++++++++++-
 1 file changed, 37 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml
index d76499c066d..5a7efbb4f5e 100644
--- a/.github/workflows/nightly-ci.yml
+++ b/.github/workflows/nightly-ci.yml
@@ -37,7 +37,7 @@ jobs:
       fail-fast: false
       matrix:
         os: [ ubuntu-latest, macos-latest, windows-latest ]
-        java-version: [ 8, 11, 17, 19 ]
+        java-version: [ 11, 17, 19 ]
     steps:
       - name: Support long paths in Windows
         if: matrix.os == 'windows-latest'
@@ -58,3 +58,39 @@ jobs:
         run: ./mvnw -T1C -B -ntp clean install
       - name: Build examples with Maven
         run: ./mvnw -T1C -B -f examples/pom.xml clean package
+  
+  ci-jdk8:
+    if: github.repository == 'apache/shardingsphere'
+    name: CI - JDK 8 on ${{ matrix.os }}
+    runs-on: ${{ matrix.os }}
+    timeout-minutes: 90
+    strategy:
+      max-parallel: 1
+      fail-fast: false
+      matrix:
+        os: [ ubuntu-latest, macos-latest, windows-latest ]
+    steps:
+      - name: Support long paths in Windows
+        if: matrix.os == 'windows-latest'
+        run: git config --global core.longpaths true
+      - uses: actions/checkout@v3
+      - uses: actions/setup-java@v3
+        with:
+          distribution: 'temurin'
+          java-version: 11
+      - uses: actions/cache@v3
+        with:
+          path: ~/.m2/repository
+          key: ${{ env.REPOSITORY_NAME }}-maven-third-party-cache-${{ 
github.sha }}
+          restore-keys: |
+            ${{ env.REPOSITORY_NAME }}-maven-third-party-cache-
+            ${{ env.REPOSITORY_NAME }}-maven-third-party-
+      - name: Build prod with Maven
+        run: ./mvnw -T1C -B -ntp clean install
+      - name: Setup JDK 8 for Test
+        uses: actions/setup-java@v3
+        with:
+          distribution: 'temurin'
+          java-version: 8
+      - name: Run tests with JDK 8
+        run: ./mvnw -T1C -B -ntp -fae test

Reply via email to