TSK-1657: removed cache restore-keys for frontend cache

to prevent invalid dependencies for execution
This commit is contained in:
Mustapha Zorgati 2021-06-28 17:27:24 +02:00
parent 155421216b
commit 75f52f04d8
No known key found for this signature in database
GPG Key ID: BFF92FDA34CDC6FB
1 changed files with 6 additions and 8 deletions

View File

@ -93,7 +93,6 @@ jobs:
with: with:
path: web/node_modules path: web/node_modules
key: ${{ runner.OS }}-${{ env.CACHE_WEB_NAME }}-${{ hashFiles('**/yarn-lock.json') }} key: ${{ runner.OS }}-${{ env.CACHE_WEB_NAME }}-${{ hashFiles('**/yarn-lock.json') }}
restore-keys: ${{ runner.OS }}-${{ env.CACHE_WEB_NAME }}
- name: Cache maven dependencies (for web) - name: Cache maven dependencies (for web)
uses: actions/cache@v2.1.6 uses: actions/cache@v2.1.6
with: with:
@ -178,7 +177,6 @@ jobs:
with: with:
path: web/node_modules path: web/node_modules
key: ${{ runner.OS }}-${{ env.CACHE_WEB_NAME }}-${{ hashFiles('**/yarn-lock.json') }} key: ${{ runner.OS }}-${{ env.CACHE_WEB_NAME }}-${{ hashFiles('**/yarn-lock.json') }}
restore-keys: ${{ runner.OS }}-${{ env.CACHE_WEB_NAME }}
# Theoretically this is not necessary because we reuse the cache from the 'compile_frontend' job. # Theoretically this is not necessary because we reuse the cache from the 'compile_frontend' job.
# Sometimes the cache is not created, therefore this is a fallback. # Sometimes the cache is not created, therefore this is a fallback.
- name: Install Dependencies - name: Install Dependencies