Skip to content

ci: build by java high version and test by multi java versions(WIP) #128

ci: build by java high version and test by multi java versions(WIP)

ci: build by java high version and test by multi java versions(WIP) #128

Workflow file for this run

# Quickstart for GitHub Actions
# https://docs.github.com/en/actions/quickstart
#
# For more information about the workflow to build a Java project with Maven, see:
# https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
name: CI with multiply java versions
steps:
- uses: actions/checkout@v4
##################################################
# Set up multiply java versions
##################################################
- name: Set up java versions
uses: actions/setup-java@v4
with:
# https://github.com/actions/setup-java?tab=readme-ov-file#install-multiple-jdks
#
# CAUTION:
# do NOT move specified old version `11.0.3` before version `11`,
# or the version `11.0.3` will not be installed!
# because the old version 11.0.3 satisfies the version 11.
java-version: |
8
11
11.0.3
17
21
distribution: zulu
cache: maven
##################################################
# CI/Build
##################################################
- name: Run integration test with multiply java versions
run: scripts/integration-test.sh