From 85964d0de050487b5575833e3c798e4a1206dc84 Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Sat, 27 May 2023 11:28:59 +0200 Subject: [PATCH 1/3] Rename maven.yml to ci.yml --- .github/workflows/{maven.yml => ci.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{maven.yml => ci.yml} (100%) diff --git a/.github/workflows/maven.yml b/.github/workflows/ci.yml similarity index 100% rename from .github/workflows/maven.yml rename to .github/workflows/ci.yml From 7992347a3d77acd87014973039280da456ebca6a Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Sat, 27 May 2023 11:33:35 +0200 Subject: [PATCH 2/3] Run CI against all supported Java versions --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c54407..52fd665 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,12 +17,18 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + jdk: [8, 11, 17] + env: + JDK_VERSION: ${{ matrix.jdk }} steps: - uses: actions/checkout@v3 - name: Set up JDK 11 uses: actions/setup-java@v3 with: - java-version: '11' + java-version: ${{ matrix.jdk }} distribution: 'temurin' cache: maven - name: Build with Maven From 8c2ca190c2660b7c9f7d644919c929c5402f42a6 Mon Sep 17 00:00:00 2001 From: Oleg Nenashev Date: Sat, 27 May 2023 11:37:32 +0200 Subject: [PATCH 3/3] Use shorter names --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52fd665..f441918 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ # separate terms of service, privacy policy, and support # documentation. -name: Java CI with Maven +name: CI on: push: @@ -25,7 +25,7 @@ jobs: JDK_VERSION: ${{ matrix.jdk }} steps: - uses: actions/checkout@v3 - - name: Set up JDK 11 + - name: Set up JDK uses: actions/setup-java@v3 with: java-version: ${{ matrix.jdk }}