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

ggregory pushed a commit to branch 1.X
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git


The following commit(s) were added to refs/heads/1.X by this push:
     new f483fe14 Modernize GH build
f483fe14 is described below

commit f483fe143d080a936ac598ec66dc70faf64e8bfe
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Apr 13 20:26:25 2024 -0400

    Modernize GH build
---
 .github/workflows/maven.yml | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 9e655934..4227beab 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -15,7 +15,14 @@
 
 name: Java CI
 
-on: [push, pull_request]
+on:
+  push:
+    branches: [ 1.X ]
+  pull_request:
+    branches: [ 1.X ]
+
+permissions:
+  contents: read
 
 jobs:
   build:
@@ -24,23 +31,28 @@ jobs:
     continue-on-error: ${{ matrix.experimental }}
     strategy:
       matrix:
-        java: [ 8, 11 ]
+        java: [ 8, 11, 17, 21 ]
         experimental: [false]
+        include:
+          - java: 22-ea
+            experimental: true
         
     steps:
-    - uses: actions/checkout@v2.3.4
-    - uses: actions/cache@v2.1.6
+    - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
+      with:
+        persist-credentials: false
+    - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
       with:
         path: ~/.m2/repository
         key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
         restore-keys: |
           ${{ runner.os }}-maven-
     - name: Set up JDK ${{ matrix.java }}
-      uses: actions/setup-java@v2
+      uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # 
v4.2.1
       with:
         distribution: 'temurin'
         java-version: ${{ matrix.java }}
     - name: Build with Maven
-      run: mvn -V -e --file pom.xml --no-transfer-progress
+      run: mvn --show-version --batch-mode --no-transfer-progress -e
 
 # For Java 11, you can be more strict: 
-DadditionalJOption=-Xdoclint/package:-org.apache.commons.configuration2.plist

Reply via email to