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:
path: web/node_modules
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)
uses: actions/cache@v2.1.6
with:
@ -159,7 +158,7 @@ jobs:
test_frontend:
runs-on: ubuntu-20.04
name: Test taskana-web
needs: [compile_frontend, compile_backend]
needs: [ compile_frontend, compile_backend ]
steps:
- name: Git checkout
uses: actions/checkout@v2.3.4
@ -178,7 +177,6 @@ jobs:
with:
path: web/node_modules
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.
# Sometimes the cache is not created, therefore this is a fallback.
- name: Install Dependencies
@ -223,7 +221,7 @@ jobs:
test_backend:
runs-on: ubuntu-20.04
name: Test ${{ matrix.module }} on ${{ matrix.database }}
needs: [compile_taskana-rest-spring-example-wildfly]
needs: [ compile_taskana-rest-spring-example-wildfly ]
strategy:
matrix:
module:
@ -293,7 +291,7 @@ jobs:
test_taskana-rest-spring-example-wildfly:
runs-on: ubuntu-20.04
name: Test taskana-rest-spring-example-wildfly on POSTGRES_10
needs: [compile_taskana-rest-spring-example-wildfly]
needs: [ compile_taskana-rest-spring-example-wildfly ]
steps:
- name: Git checkout
uses: actions/checkout@v2.3.4
@ -326,7 +324,7 @@ jobs:
name: Release artifacts to OSS Sonatype
if: github.repository == 'Taskana/taskana' && ( startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master' ) && github.head_ref == ''
needs:
[test_frontend, test_backend, test_taskana-rest-spring-example-wildfly]
[ test_frontend, test_backend, test_taskana-rest-spring-example-wildfly ]
# as documented in the gpg manual (https://www.gnupg.org/documentation/manuals/gnupg/Invoking-GPG_002dAGENT.html)
# we should execute this command before interacting with gpg (otherwise gpg won't work)
env:
@ -396,7 +394,7 @@ jobs:
name: Deploy demo app to IBM Cloud Foundry
if: github.repository == 'Taskana/taskana' && github.ref == 'refs/heads/master' && github.head_ref == ''
needs:
[test_frontend, test_backend, test_taskana-rest-spring-example-wildfly]
[ test_frontend, test_backend, test_taskana-rest-spring-example-wildfly ]
steps:
- name: Git checkout
uses: actions/checkout@v2.3.4
@ -452,7 +450,7 @@ jobs:
# no pull request and not on release
if: github.head_ref == '' && !startsWith(github.ref, 'refs/tags')
needs:
[test_frontend, test_backend, test_taskana-rest-spring-example-wildfly]
[ test_frontend, test_backend, test_taskana-rest-spring-example-wildfly ]
steps:
- name: Git checkout
uses: actions/checkout@v2.3.4