diff --git a/.github/workflows/icu_ci.yml b/.github/workflows/icu_ci.yml index f82a3331d5e4..d95c5ede9d14 100644 --- a/.github/workflows/icu_ci.yml +++ b/.github/workflows/icu_ci.yml @@ -32,10 +32,15 @@ jobs: # ICU4J build and unit test using Ant icu4j-ant-build-and-test: + name: Build and test with Ant for Java version strategy: fail-fast: false matrix: - java-version: [ '8', '11', '17' ] + java-version: [ '8', '11', '17', '19' ] + include: + - check-latest: false # make 'false' the default value for the above matrix variable possibilities + - java-version: 19 # for when java-version == '19', override check-latest to be 'true' + check-latest: true runs-on: ubuntu-latest steps: - name: Checkout and setup @@ -48,6 +53,7 @@ jobs: with: distribution: 'temurin' java-version: ${{ matrix.java-version }} + check-latest: ${{ matrix.check-latest }} - name: ICU4J run: | cd icu4j; @@ -74,7 +80,11 @@ jobs: strategy: fail-fast: false matrix: - java-version: [ '8', '11', '17' ] + java-version: [ '8', '11', '17', '19' ] + include: + - check-latest: false # make 'false' the default value for the above matrix variable possibilities + - java-version: 19 # for when java-version == '19', override check-latest to be 'true' + check-latest: true steps: - name: Checkout and setup uses: actions/checkout@v2 @@ -86,6 +96,7 @@ jobs: with: distribution: 'temurin' java-version: ${{ matrix.java-version }} + check-latest: ${{ matrix.check-latest }} cache: maven - name: Run Maven test run: | @@ -99,7 +110,11 @@ jobs: strategy: fail-fast: false matrix: - java-version: [ '8', '11', '17' ] + java-version: [ '8', '11', '17', '19' ] + include: + - check-latest: false # make 'false' the default value for the above matrix variable possibilities + - java-version: 19 # for when java-version == '19', override check-latest to be 'true' + check-latest: true steps: - name: Checkout and setup uses: actions/checkout@v2 @@ -111,6 +126,7 @@ jobs: with: distribution: 'temurin' java-version: ${{ matrix.java-version }} + check-latest: ${{ matrix.check-latest }} cache: maven # The Maven `verify` phase causes the following to happen first, and in order: # build/compile (`compile`), unit tests (`test`), Jar building (`package`),