Skip to content

Commit 8b9ec57

Browse files
authored
chore: add all java versions and use corretto for build (#1191)
1 parent 5dc92c3 commit 8b9ec57

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,30 +42,29 @@ on:
4242
- 'examples/pom.xml'
4343
- '.github/workflows/**'
4444
jobs:
45-
build:
45+
build-corretto:
4646
runs-on: ubuntu-latest
4747
strategy:
48-
max-parallel: 4
48+
max-parallel: 5
4949
matrix:
50-
# test against latest update of each major Java version, as well as specific updates of LTS versions:
51-
java: [8, 8.0.192, 11.0.x, 11.0.3, 12, 13, 15, 16, 17 ]
50+
java: [8, 11, 15, 16, 17, 18, 19, 20 ]
5251
name: Java ${{ matrix.java }}
5352
env:
5453
JAVA: ${{ matrix.java }}
5554
AWS_REGION: eu-west-1
5655
steps:
5756
- uses: actions/checkout@v3
5857
- name: Setup java
59-
uses: actions/setup-java@v2
58+
uses: actions/setup-java@v3
6059
with:
61-
distribution: 'zulu'
60+
distribution: 'corretto'
6261
java-version: ${{ matrix.java }}
6362
cache: 'maven'
6463
- name: Build with Maven
6564
run: mvn -Pbuild-without-spotbugs -B package --file pom.xml
6665
- name: Upload coverage to Codecov
6766
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # 3.1.1
68-
if: ${{ matrix.java == '11.0.x' }} # publish results once
67+
if: ${{ matrix.java == '11' }} # publish results once
6968
with:
7069
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
7170
savepr:

0 commit comments

Comments
 (0)