From 02538c845dcfbeeed4cf4901514d5b21564b4240 Mon Sep 17 00:00:00 2001 From: Jerome Van Der Linden Date: Wed, 14 Jun 2023 11:08:57 +0200 Subject: [PATCH 1/3] add all java versions and use corretto for build --- .github/workflows/build.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9ffc7b024..e95625d2a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,10 +45,9 @@ jobs: build: runs-on: ubuntu-latest strategy: - max-parallel: 4 + max-parallel: 5 matrix: - # test against latest update of each major Java version, as well as specific updates of LTS versions: - java: [8, 8.0.192, 11.0.x, 11.0.3, 12, 13, 15, 16, 17 ] + java: [8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20 ] name: Java ${{ matrix.java }} env: JAVA: ${{ matrix.java }} @@ -56,9 +55,9 @@ jobs: steps: - uses: actions/checkout@v3 - name: Setup java - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: - distribution: 'zulu' + distribution: 'corretto' java-version: ${{ matrix.java }} cache: 'maven' - name: Build with Maven From b56b842bf94ca6859baaab836604d89a1ee02460 Mon Sep 17 00:00:00 2001 From: Jerome Van Der Linden Date: Wed, 14 Jun 2023 11:15:13 +0200 Subject: [PATCH 2/3] use only available versions --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e95625d2a..ec8656a7c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,12 +42,12 @@ on: - 'examples/pom.xml' - '.github/workflows/**' jobs: - build: + build-corretto: runs-on: ubuntu-latest strategy: max-parallel: 5 matrix: - java: [8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20 ] + java: [8, 11, 15, 16, 17, 18, 19, 20 ] name: Java ${{ matrix.java }} env: JAVA: ${{ matrix.java }} From bc7b69d7bb508d0e01a83d160f895e8eaa1decf2 Mon Sep 17 00:00:00 2001 From: Jerome Van Der Linden Date: Thu, 15 Jun 2023 13:52:44 +0200 Subject: [PATCH 3/3] fix java version in action --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ec8656a7c..7b09b305f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -64,7 +64,7 @@ jobs: run: mvn -Pbuild-without-spotbugs -B package --file pom.xml - name: Upload coverage to Codecov uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # 3.1.1 - if: ${{ matrix.java == '11.0.x' }} # publish results once + if: ${{ matrix.java == '11' }} # publish results once with: files: ./powertools-cloudformation/target/site/jacoco/jacoco.xml,./powertools-core/target/site/jacoco/jacoco.xml,./powertools-idempotency/target/site/jacoco/jacoco.xml,./powertools-logging/target/site/jacoco/jacoco.xml,./powertools-metrics/target/site/jacoco/jacoco.xml,./powertools-parameters/target/site/jacoco/jacoco.xml,./powertools-serialization/target/site/jacoco/jacoco.xml,./powertools-sqs/target/site/jacoco/jacoco.xml,./powertools-tracing/target/site/jacoco/jacoco.xml,./powertools-validation/target/site/jacoco/jacoco.xml savepr: