You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2021/04/16 18:28:24 UTC

[incubator-hop] branch master updated: HOP-2805: improve github actions (#750)

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

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop.git


The following commit(s) were added to refs/heads/master by this push:
     new dc4159b  HOP-2805: improve github actions (#750)
dc4159b is described below

commit dc4159b7df03a0e8d74fc3be128aa54a4065c513
Author: Hans Van Akelyen <ha...@gmail.com>
AuthorDate: Fri Apr 16 20:28:18 2021 +0200

    HOP-2805: improve github actions (#750)
    
    * HOP-2805: improve github actions
    
    * HOP-2805: add on push
---
 .github/workflows/{pr_build.yml => pr_build_code.yml} | 14 ++++++++++----
 .github/workflows/{pr_build.yml => pr_build_docs.yml} | 17 ++++++-----------
 2 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/.github/workflows/pr_build.yml b/.github/workflows/pr_build_code.yml
similarity index 85%
copy from .github/workflows/pr_build.yml
copy to .github/workflows/pr_build_code.yml
index 3af6c0c..95e2080 100644
--- a/.github/workflows/pr_build.yml
+++ b/.github/workflows/pr_build_code.yml
@@ -17,11 +17,14 @@
 #
 ---
 
-name: Hop PR Build
+name: Hop PR Build (Code)
 
-on: 
+on:
+  push:
   pull_request:
     branches: ['master']
+    paths-ignore:
+      - 'docs/**'
 
 jobs:
   build:
@@ -36,9 +39,12 @@ jobs:
       - name: Cache Maven packages
         uses: actions/cache@v2
         with:
-          path: ~/.m2
+          path: ~/.m2/repository
           key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
-          restore-keys: ${{ runner.os }}-m2
+          restore-keys: |
+            ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+            ${{ runner.os }}-m2-
+            ${{ runner.os }}-
       - name: RAT Check
         run: mvn clean apache-rat:check
       - name: Build with Maven
diff --git a/.github/workflows/pr_build.yml b/.github/workflows/pr_build_docs.yml
similarity index 66%
rename from .github/workflows/pr_build.yml
rename to .github/workflows/pr_build_docs.yml
index 3af6c0c..c114ff0 100644
--- a/.github/workflows/pr_build.yml
+++ b/.github/workflows/pr_build_docs.yml
@@ -17,11 +17,14 @@
 #
 ---
 
-name: Hop PR Build
+name: Hop PR Build (Documentation)
 
-on: 
+on:
+  push:
   pull_request:
     branches: ['master']
+    paths:
+      - 'docs/**'
 
 jobs:
   build:
@@ -33,13 +36,5 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: 1.8
-      - name: Cache Maven packages
-        uses: actions/cache@v2
-        with:
-          path: ~/.m2
-          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
-          restore-keys: ${{ runner.os }}-m2
       - name: RAT Check
-        run: mvn clean apache-rat:check
-      - name: Build with Maven
-        run: MAVEN_OPTS="-XX:+TieredCompilation -XX:TieredStopAtLevel=1"; mvn clean install -T 1C -B -C -e -fae -V -Dmaven.compiler.fork=true -Dsurefire.rerunFailingTestsCount=2 -P '!assemblies' -Djacoco.skip=true --file pom.xml
+        run: mvn clean apache-rat:check
\ No newline at end of file