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

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git


The following commit(s) were added to refs/heads/master by this push:
     new 3bc0465b Use a single build goal
3bc0465b is described below

commit 3bc0465bb546cad548828657227e21038216b2ac
Author: Alex Herbert <[email protected]>
AuthorDate: Sat Jun 4 15:11:47 2022 +0100

    Use a single build goal
    
    This allows the examples modules to use the dependency artifacts from
    the build and not the local repository.
---
 .github/workflows/maven.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 0ae9f1d1..9ca51b63 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -43,9 +43,9 @@ jobs:
         java-version: ${{ matrix.java }}
     - name: Build with Maven
       # Use the default goal
+      if: matrix.java == 8
       run: mvn -V --no-transfer-progress
-    - name: Build examples with Maven
+    - name: Build with Maven including examples
       # Examples require Java 11+
       if: matrix.java > 8
-      working-directory: ./commons-numbers-examples
-      run: mvn -V --no-transfer-progress
+      run: mvn -V --no-transfer-progress -P commons-numbers-examples

Reply via email to