ci: build by java high version and test by multi java versions(WIP) #129
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 ${{ matrix.java-distribution }} java versions | |
strategy: | |
matrix: | |
java-distribution: [ zulu, temurin ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up multiply java versions | |
uses: actions/setup-java@v4 | |
with: | |
# https://github.com/actions/setup-java?tab=readme-ov-file#install-multiple-jdks | |
java-version: | | |
8 | |
11 | |
17 | |
21 | |
distribution: ${{ matrix.java-distribution }} | |
cache: maven | |
- name: Run integration test with multiply java versions | |
run: scripts/integration-test.sh |