You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2023/09/11 06:35:51 UTC

[wicket] 01/01: Build and test with JDK 17 & 21

This is an automated email from the ASF dual-hosted git repository.

mgrigorov pushed a commit to branch test-with-java-21
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit f54ab006d502c60efb03b127e68749c53d2f16f5
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
AuthorDate: Mon Sep 11 09:35:12 2023 +0300

    Build and test with JDK 17 & 21
    
    Update Maven in CI to 3.9.4 (latest stable)
    
    Signed-off-by: Martin Tzvetanov Grigorov <mg...@apache.org>
---
 .github/workflows/maven.yml | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index c4af5889ba..ad616a645e 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -6,19 +6,30 @@ jobs:
   build:
 
     runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        java:
+        - '17'
+        - '21-ea'
 
     steps:
-    - uses: actions/checkout@v1
+    - uses: actions/checkout@v4
+
+    - name: Setup Temurin JDK
+      uses: actions/setup-java@v3
+      with:
+        distribution: 'temurin'
+        java-version: ${{ matrix.java }}
 
     - name: Apt update
       run: sudo apt update
 
-    - name: Install Java & Puppeteer's dependencies
-      run: sudo apt-get install -y openjdk-17-jdk chromium-browser fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrand [...]
+    - name: Install Puppeteer's dependencies
+      run: sudo apt-get install -y chromium-browser fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf gconf-service libasound2 libatk1.0-0 libatk-bridge2.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1  [...]
 
     - name: Install Maven
       run: |
-        MAVEN_VERSION=3.8.7
+        MAVEN_VERSION=3.9.4
         wget https://archive.apache.org/dist/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz
         tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz
         export PATH=$PWD/apache-maven-${MAVEN_VERSION}/bin:$PATH
@@ -32,8 +43,6 @@ jobs:
 
     - name: Build with Maven
       run: |
-        export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
-        export PATH=$JAVA_HOME/bin:$PATH 
         java -version 
         mvn -version
         mvn clean verify -Pjs-test