Skip to content

upgrade to Jdk17 and SpringBoot3 #147

upgrade to Jdk17 and SpringBoot3

upgrade to Jdk17 and SpringBoot3 #147

# Quickstart for GitHub Actions
# https://docs.github.com/en/actions/quickstart
name: Strong CI with multiply java versions
on: [ push, pull_request, workflow_dispatch ]
jobs:
test:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners
runs-on: ubuntu-latest
timeout-minutes: 20
name: test by multiply java versions
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: setup java8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: zulu
# only first java setup need enable cache
cache: maven
- name: setup java11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: microsoft
- name: setup java17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: microsoft
- name: setup java19
uses: actions/setup-java@v3
with:
java-version: 19
distribution: temurin
- name: setup java20
uses: actions/setup-java@v3
with:
java-version: 20
distribution: zulu
- run: scripts/integration_test
env:
JAVA8_HOME: ${{ env.JAVA_HOME_8_X64 }}
JAVA11_HOME: ${{ env.JAVA_HOME_11_X64 }}
JAVA17_HOME: ${{ env.JAVA_HOME_17_X64 }}
JAVA19_HOME: ${{ env.JAVA_HOME_19_X64 }}
JAVA20_HOME: ${{ env.JAVA_HOME_20_X64 }}
- name: remove cola self maven install files
run: rm -rf $HOME/.m2/repository/com/alibaba/{cola,craftsman}