Skip to content

Commit

Permalink
Refactor : add JDK 8 CI in nightly CI (#24653) (#24654)
Browse files Browse the repository at this point in the history
  • Loading branch information
taojintianxia authored Mar 16, 2023
1 parent da27912 commit 815dfe6
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion .github/workflows/nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

0 comments on commit 815dfe6

Please sign in to comment.