diff --git a/.github/workflows/ci-it.yaml b/.github/workflows/ci-it.yaml index bde6ff044..fe0099f70 100644 --- a/.github/workflows/ci-it.yaml +++ b/.github/workflows/ci-it.yaml @@ -36,6 +36,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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- - uses: actions/setup-java@v1 with: java-version: 8 @@ -55,6 +62,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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- - uses: actions/setup-java@v1 with: java-version: 11 @@ -82,6 +96,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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- - uses: actions/setup-java@v1 with: java-version: 8 diff --git a/.github/workflows/docker-ci.yaml b/.github/workflows/docker-ci.yaml index adc832fef..306a67fb4 100644 --- a/.github/workflows/docker-ci.yaml +++ b/.github/workflows/docker-ci.yaml @@ -32,6 +32,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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- - uses: actions/cache@v1 with: path: ~/.m2/repository diff --git a/.github/workflows/e2e.cluster.yaml b/.github/workflows/e2e.cluster.yaml index 9dd51b71d..5f988b996 100644 --- a/.github/workflows/e2e.cluster.yaml +++ b/.github/workflows/e2e.cluster.yaml @@ -45,6 +45,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker && ES_VERSION=es7 TAG=latest-es7 make docker.oap - name: Copy dist package diff --git a/.github/workflows/e2e.go.yaml b/.github/workflows/e2e.go.yaml index 1a0b19a1a..1b3846672 100644 --- a/.github/workflows/e2e.go.yaml +++ b/.github/workflows/e2e.go.yaml @@ -37,6 +37,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker - name: Copy dist package diff --git a/.github/workflows/e2e.jdk-versions.yaml b/.github/workflows/e2e.jdk-versions.yaml index 7b622fcad..768013902 100644 --- a/.github/workflows/e2e.jdk-versions.yaml +++ b/.github/workflows/e2e.jdk-versions.yaml @@ -44,6 +44,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Set Up Java uses: actions/setup-java@v1 with: diff --git a/.github/workflows/e2e.js.yaml b/.github/workflows/e2e.js.yaml index d0a87ef7d..85b91e9f3 100644 --- a/.github/workflows/e2e.js.yaml +++ b/.github/workflows/e2e.js.yaml @@ -37,6 +37,15 @@ jobs: SW_STORAGE: ${{ matrix.storage }} steps: - uses: actions/checkout@v2 + with: + submodules: true + - 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: checkout submodules shell: bash run: | diff --git a/.github/workflows/e2e.kafka.yaml b/.github/workflows/e2e.kafka.yaml index 840a1168c..84add3cf6 100644 --- a/.github/workflows/e2e.kafka.yaml +++ b/.github/workflows/e2e.kafka.yaml @@ -38,6 +38,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker - name: Copy dist package @@ -61,6 +68,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker - name: Copy dist package @@ -82,6 +96,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker - name: Copy dist package diff --git a/.github/workflows/e2e.php.yaml b/.github/workflows/e2e.php.yaml index 19b5fc72f..3f2071fe1 100644 --- a/.github/workflows/e2e.php.yaml +++ b/.github/workflows/e2e.php.yaml @@ -37,6 +37,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker - name: Copy dist package diff --git a/.github/workflows/e2e.profiling.yaml b/.github/workflows/e2e.profiling.yaml index 6be241802..40c1d08b4 100644 --- a/.github/workflows/e2e.profiling.yaml +++ b/.github/workflows/e2e.profiling.yaml @@ -43,6 +43,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker && ES_VERSION=es7 TAG=latest-es7 make docker.oap - name: Copy dist package diff --git a/.github/workflows/e2e.python.yaml b/.github/workflows/e2e.python.yaml index ccd0a58dc..11f44774b 100644 --- a/.github/workflows/e2e.python.yaml +++ b/.github/workflows/e2e.python.yaml @@ -37,6 +37,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker - name: Copy dist package diff --git a/.github/workflows/e2e.storages.yaml b/.github/workflows/e2e.storages.yaml index 1fb171180..c844442b6 100644 --- a/.github/workflows/e2e.storages.yaml +++ b/.github/workflows/e2e.storages.yaml @@ -43,6 +43,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker && ES_VERSION=es7 TAG=latest-es7 make docker.oap - name: Copy dist package diff --git a/.github/workflows/e2e.ttl.yaml b/.github/workflows/e2e.ttl.yaml index 1a723e62d..4a2d1d126 100644 --- a/.github/workflows/e2e.ttl.yaml +++ b/.github/workflows/e2e.ttl.yaml @@ -43,6 +43,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker && ES_VERSION=es7 TAG=latest-es7 make docker.oap - name: Copy dist package diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 03c03a27e..ced936b97 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -43,6 +43,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker - name: Copy dist package @@ -65,6 +72,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker - name: Copy dist package @@ -87,6 +101,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker - name: Copy dist package @@ -109,6 +130,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Compile and Build run: make docker - name: Copy dist package diff --git a/.github/workflows/istio-mixer-ci.yaml b/.github/workflows/istio-mixer-ci.yaml index 5954bf521..48ad9c085 100644 --- a/.github/workflows/istio-mixer-ci.yaml +++ b/.github/workflows/istio-mixer-ci.yaml @@ -35,6 +35,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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: Prepare enviroment run: | bash ${SCRIPTS_DIR}/pre.sh diff --git a/.github/workflows/plugins-jdk14-test.0.yaml b/.github/workflows/plugins-jdk14-test.0.yaml index 431967a8b..c739c2d50 100644 --- a/.github/workflows/plugins-jdk14-test.0.yaml +++ b/.github/workflows/plugins-jdk14-test.0.yaml @@ -33,6 +33,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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- - uses: actions/setup-java@v1 with: java-version: 8 diff --git a/.github/workflows/plugins-test.0.yaml b/.github/workflows/plugins-test.0.yaml index df86e2995..3e8bb6361 100644 --- a/.github/workflows/plugins-test.0.yaml +++ b/.github/workflows/plugins-test.0.yaml @@ -63,6 +63,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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- - uses: actions/setup-java@v1 with: java-version: 8 diff --git a/.github/workflows/plugins-test.1.yaml b/.github/workflows/plugins-test.1.yaml index 335b547d1..b4635cea8 100644 --- a/.github/workflows/plugins-test.1.yaml +++ b/.github/workflows/plugins-test.1.yaml @@ -54,6 +54,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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- - uses: actions/setup-java@v1 with: java-version: 8 diff --git a/.github/workflows/plugins-test.2.yaml b/.github/workflows/plugins-test.2.yaml index 0f5feec79..d328d4469 100644 --- a/.github/workflows/plugins-test.2.yaml +++ b/.github/workflows/plugins-test.2.yaml @@ -60,6 +60,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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- - uses: actions/setup-java@v1 with: java-version: 8 diff --git a/.github/workflows/plugins-test.3.yaml b/.github/workflows/plugins-test.3.yaml index 1321bc9d8..7294d8de8 100644 --- a/.github/workflows/plugins-test.3.yaml +++ b/.github/workflows/plugins-test.3.yaml @@ -63,6 +63,13 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - 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- - uses: actions/setup-java@v1 with: java-version: 8