You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2020/09/22 13:51:11 UTC

[camel-kafka-connector] 02/02: Enable repository caching in addition to the timeout work-around

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

orpiske pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git

commit 464a8b57a9aeca86d4d1fdd60c8ca747821d3264
Author: Otavio Rodolfo Piske <op...@redhat.com>
AuthorDate: Tue Sep 22 14:59:18 2020 +0200

    Enable repository caching in addition to the timeout work-around
---
 .github/workflows/automatic-sync-camel-master.yml     | 7 +++++++
 .github/workflows/master-pr-build.yml                 | 7 +++++++
 .github/workflows/master-push-build.yml               | 7 +++++++
 .github/workflows/rebase-master-onto-camel-master.yml | 7 +++++++
 4 files changed, 28 insertions(+)

diff --git a/.github/workflows/automatic-sync-camel-master.yml b/.github/workflows/automatic-sync-camel-master.yml
index 8dc540b..5f48be2 100644
--- a/.github/workflows/automatic-sync-camel-master.yml
+++ b/.github/workflows/automatic-sync-camel-master.yml
@@ -39,6 +39,13 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: ${{ matrix.java }}
+      - name: Cache local Maven repository
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
       - name: Build Camel Project
         run: ./mvnw -V --no-transfer-progress clean install -DskipTests
         working-directory: ${{ github.workspace }}/camel
diff --git a/.github/workflows/master-pr-build.yml b/.github/workflows/master-pr-build.yml
index 14cfb58..273da5f 100644
--- a/.github/workflows/master-pr-build.yml
+++ b/.github/workflows/master-pr-build.yml
@@ -33,6 +33,13 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: ${{ matrix.java }}
+      - name: Cache local Maven repository
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
       - name: mvn sourcecheck + build and itests
         # first command builds the source check module,
         # second one source check and install :camel-kafka-connector-generator-maven-plugin. This is needed to add maven plugin metadata to it,
diff --git a/.github/workflows/master-push-build.yml b/.github/workflows/master-push-build.yml
index daa5e21..6558b20 100644
--- a/.github/workflows/master-push-build.yml
+++ b/.github/workflows/master-push-build.yml
@@ -33,6 +33,13 @@ jobs:
         uses: actions/setup-java@v1
         with:
           java-version: ${{ matrix.java }}
+      - name: Cache local Maven repository
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
       - name: mvn sourcecheck + build and itests
         # first command builds the source check module,
         # second one source check and install :camel-kafka-connector-generator-maven-plugin. This is needed to add maven plugin metadata to it,
diff --git a/.github/workflows/rebase-master-onto-camel-master.yml b/.github/workflows/rebase-master-onto-camel-master.yml
index 59f178f..bfebb7c 100644
--- a/.github/workflows/rebase-master-onto-camel-master.yml
+++ b/.github/workflows/rebase-master-onto-camel-master.yml
@@ -38,6 +38,13 @@ jobs:
         with:
           ref: camel-master
           fetch-depth: 0
+      - name: Cache local Maven repository
+        uses: actions/cache@v2
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
       - name: Rebase branch master onto camel-master
         run: |
           git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"