12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- # 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
-
- - 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
- #
- # 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
-
- - name: Run integration test with multiply java versions
- run: scripts/integration-test.sh
|