From 16c1b4cf1ae52a32fecbfa294eef6ffe844cbf06 Mon Sep 17 00:00:00 2001 From: Dmitry Patsura Date: Tue, 10 Sep 2024 20:55:33 +0200 Subject: [PATCH] chore(ci): Real switch between java versions, test under java17 --- .github/workflows/master.yml | 6 +++++- .github/workflows/pull-requests.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 016bbb1..0038449 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -10,13 +10,17 @@ jobs: strategy: matrix: nodeVersion: [ 16, 18, 20 ] - jdkVersion: [ openjdk9, openjdk10, openjdk11, openjdk21 ] + jdkVersion: [ 9, 10, 11, 17, 21 ] steps: - name: Checkout source code uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.nodeVersion }} + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdkVersion }} - name: npm ci run: npm ci - name: Unit test diff --git a/.github/workflows/pull-requests.yml b/.github/workflows/pull-requests.yml index c5fd0d6..eaf63ba 100644 --- a/.github/workflows/pull-requests.yml +++ b/.github/workflows/pull-requests.yml @@ -11,13 +11,17 @@ jobs: strategy: matrix: nodeVersion: [ 16, 18, 20 ] - jdkVersion: [ openjdk9, openjdk10, openjdk11, openjdk21 ] + jdkVersion: [ 9, 10, 11, 17, 21 ] steps: - name: Checkout source code uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: ${{ matrix.nodeVersion }} + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: ${{ matrix.jdkVersion }} - name: npm ci run: npm ci - name: Unit test