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

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 8454010  (chores) Upgrade PR and push GH actions to v2 when available
8454010 is described below

commit 84540106a7e288129711669e4f58a68fb7dec4ca
Author: Otavio Rodolfo Piske <opi...@redhat.com>
AuthorDate: Thu Jan 13 17:28:08 2022 +0100

    (chores) Upgrade PR and push GH actions to v2 when available
---
 .github/workflows/master-pr-build.yml   | 20 ++++++--------------
 .github/workflows/master-push-build.yml | 10 +++-------
 2 files changed, 9 insertions(+), 21 deletions(-)

diff --git a/.github/workflows/master-pr-build.yml 
b/.github/workflows/master-pr-build.yml
index e403985..5442ac8 100644
--- a/.github/workflows/master-pr-build.yml
+++ b/.github/workflows/master-pr-build.yml
@@ -30,15 +30,11 @@ jobs:
       with:
         persist-credentials: false
     - name: Set up JDK
-      uses: actions/setup-java@v1
+      uses: actions/setup-java@v2
       with:
+        distribution: 'temurin'
         java-version: 11
-    - name: Cache Maven Repository
-      uses: actions/cache@v1
-      with:
-        path: ~/.m2
-        key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
-        restore-keys: ${{ runner.os }}-m2
+        cache: 'maven'
     - name: mvn checkstyle
       run: ./mvnw -V -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 --no-transfer-progress  
-Dcheckstyle.failOnViolation=true checkstyle:checkstyle
   build:
@@ -51,14 +47,10 @@ jobs:
         with:
           persist-credentials: false
       - name: Set up JDK ${{ matrix.java }}
-        uses: actions/setup-java@v1
+        uses: actions/setup-java@v2
         with:
+          distribution: 'temurin'
           java-version: ${{ matrix.java }}
-      - name: Cache Maven Repository
-        uses: actions/cache@v1
-        with:
-          path: ~/.m2
-          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
-          restore-keys: ${{ runner.os }}-m2
+          cache: 'maven'
       - name: maven build
         run: ./mvnw -V -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 --no-transfer-progress 
-Pfastinstall -Dcheckstyle.skip=true -DskipTests install
diff --git a/.github/workflows/master-push-build.yml 
b/.github/workflows/master-push-build.yml
index 0cb620b..25135c7 100644
--- a/.github/workflows/master-push-build.yml
+++ b/.github/workflows/master-push-build.yml
@@ -32,15 +32,11 @@ jobs:
         with:
           persist-credentials: false
       - name: Set up JDK ${{ matrix.java }}
-        uses: actions/setup-java@v1
+        uses: actions/setup-java@v2
         with:
+          distribution: 'temurin'
           java-version: ${{ matrix.java }}
-      - name: Cache Maven Repository
-        uses: actions/cache@v1
-        with:
-          path: ~/.m2
-          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
-          restore-keys: ${{ runner.os }}-m2
+          cache: 'maven'
       - name: mvn sourcecheck
         run: ./mvnw -V -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false 
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 --no-transfer-progress 
-Psourcecheck -Dcheckstyle.failOnViolation=true -DskipTests 
checkstyle:checkstyle verify
       - name: Create Pull Request

Reply via email to