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

pkarwasz pushed a commit to branch develocity
in repository https://gitbox.apache.org/repos/asf/logging-parent.git


The following commit(s) were added to refs/heads/develocity by this push:
     new 01ceb10  Add `predictive-test-selection-enabled` option
01ceb10 is described below

commit 01ceb10e3d414ccf555f431ba49024ee4be9b6cd
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Fri Jun 14 16:29:03 2024 +0200

    Add `predictive-test-selection-enabled` option
---
 .github/workflows/build-reusable.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/build-reusable.yaml 
b/.github/workflows/build-reusable.yaml
index c772a36..ff5bab1 100644
--- a/.github/workflows/build-reusable.yaml
+++ b/.github/workflows/build-reusable.yaml
@@ -28,6 +28,10 @@ on:
         description: Flag indicating if Maven `site` goal should be run
         default: false
         type: boolean
+      predictive-test-selection-enabled:
+        description: Enables Predictive Test Selection for the build
+        default: false
+        type: boolean
     secrets:
       GE_ACCESS_TOKEN:
         description: Access token to Gradle Enterprise
@@ -65,12 +69,14 @@ jobs:
         id: build
         shell: bash
         env:
+          PTS_ENABLED: ${{ inputs.predictive-test-selection-enabled }}
           DEVELOCITY_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
         run: |
           ./mvnw \
             --show-version --batch-mode --errors --no-transfer-progress \
             -DtrimStackTrace=false \
             -DinstallAtEnd=true \
+            -Dpts.enabled=$PTS_ENABLED \
             clean install
 
       # Node.js cache is needed for Antora

Reply via email to