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

rzo1 pushed a commit to branch opennlp-1.x
in repository https://gitbox.apache.org/repos/asf/opennlp.git

commit f8a6b089eddf1e916b957449d8347ba4cb7e683e
Author: Richard Zowalla <[email protected]>
AuthorDate: Fri Jun 12 16:11:06 2026 +0200

    Add GitHub Actions Java CI workflow for opennlp-1.x
    
    Mirrors the opennlp-2.x Java CI setup: builds and runs the test suite
    on ubuntu-latest, macos-latest and windows-latest using Temurin JDK 8
    (the branch's compile target) with the jacoco profile. Triggered on
    pushes and pull requests targeting opennlp-1.x.
---
 .github/workflows/maven.yml | 55 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 000000000..44ca0a643
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,55 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: Java CI
+
+on:
+  # Run CI on Pushes to "opennlp-1.x" or on pull requests targeting 
"opennlp-1.x".
+  push:
+    branches:
+      - opennlp-1.x
+  pull_request:
+    branches:
+      - opennlp-1.x
+
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+    continue-on-error: ${{ matrix.experimental }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest, macos-latest, windows-latest]
+        java: [ 8 ]
+        experimental: [false]
+
+    steps:
+    - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+      with:
+        persist-credentials: false
+    - uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
+      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@be666c2fcd27ec809703dec50e508c2fdc7f6654 # 
v5.2.0
+      with:
+        distribution: temurin
+        java-version: ${{ matrix.java }}
+    - name: Build with Maven
+      run: mvn -V clean test install --show-version --batch-mode 
--no-transfer-progress -Pjacoco
+    - name: Jacoco
+      run: mvn jacoco:report

Reply via email to