From 0879ca596a1967d107201e366a6639fab5b07280 Mon Sep 17 00:00:00 2001 From: Mustapha Zorgati <15628173+mustaphazorgati@users.noreply.github.com> Date: Tue, 29 Jun 2021 09:19:51 +0200 Subject: [PATCH] TSK-1657: increased stability of test_frontend job by adding a 'populate cache' step in case compile_frontend does not write the cache --- .github/workflows/continuous-integration.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 2db1def88..b59dfc009 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -177,17 +177,23 @@ jobs: with: path: web/node_modules key: ${{ runner.OS }}-${{ env.CACHE_WEB_NAME }}-${{ hashFiles('**/yarn.lock') }} - # Theoretically this is not necessary because we reuse the cache from the 'compile_frontend' job. + # Theoretically this step below not necessary because we reuse the cache from the 'compile_frontend' job. # Sometimes the cache is not created, therefore this is a fallback. - name: Install Dependencies if: steps.web-cache.outputs.cache-hit != 'true' working-directory: web run: yarn ci - name: Cache maven dependencies + id: maven-cache uses: actions/cache@v2.1.6 with: path: ~/.m2 key: ${{ runner.os }}-${{ env.CACHE_MAVEN_NAME }}-${{ hashFiles('**/pom.xml') }} + # Theoretically this step below not necessary because we reuse the cache from the 'compile_frontend' job. + # Sometimes the cache is not created, therefore this is a fallback. + - name: Populate cache + run: ./mvnw -B dependency:go-offline -pl :taskana-rest-spring-example-boot -am + if: steps.maven-cache.outputs.cache-hit != 'true' - name: Download taskana artifacts uses: actions/download-artifact@v2 with: