You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pk...@apache.org on 2025/11/05 10:27:32 UTC
(commons-lang) branch feat/reusable-workflow created (now df4d85a96)
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a change to branch feat/reusable-workflow
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
at df4d85a96 feat: use `maven-reusable.yml` workflow
This branch includes the following new commits:
new df4d85a96 feat: use `maven-reusable.yml` workflow
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(commons-lang) 01/01: feat: use `maven-reusable.yml` workflow
Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch feat/reusable-workflow
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit df4d85a969e170df356aae1f2874af010a1973c5
Author: Piotr P. Karwasz <pk...@apache.org>
AuthorDate: Wed Nov 5 11:27:14 2025 +0100
feat: use `maven-reusable.yml` workflow
Replaces the local `maven.yml` workflow with the shared `maven-reusable.yml` from `commons-parent`.
This simplifies maintenance and ensures consistency across Commons projects, eliminating the need to update this workflow unless breaking changes occur.
---
.github/workflows/maven.yml | 42 +++++++++---------------------------------
1 file changed, 9 insertions(+), 33 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index aabe25e71..db0be53d7 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -15,40 +15,16 @@
name: Java CI
-on: [push, pull_request]
+on:
+ push:
+ # TODO: remove "feat/reusable-workflow" branch before merging.
+ branches: [ "master", "release", "feat/reusable-workflow" ]
+ pull_request: { }
-permissions:
- contents: read
+# Explicitly drop all permissions for security.
+permissions: { }
jobs:
build:
-
- runs-on: ${{ matrix.os }}
- continue-on-error: ${{ matrix.experimental }}
- strategy:
- matrix:
- os: [ubuntu-latest, windows-latest, macos-13]
- java: [ 8, 11, 17, 21, 25 ]
- experimental: [false]
- include:
- - java: 26-ea
- experimental: true
- os: ubuntu-latest
-
- steps:
- - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- with:
- persist-credentials: false
- - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
- 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@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0
- with:
- distribution: 'temurin'
- java-version: ${{ matrix.java }}
- - name: Build with Maven
- run: mvn --errors --show-version --batch-mode --no-transfer-progress -Ddoclint=all
+ # Intentionally not pinned: maintained by the same PMC.
+ uses: apache/commons-parent/.github/workflows/maven-reusable.yml@feature/reusable-workflow