TSK-1657: removed cache restore-keys for frontend cache
to prevent invalid dependencies for execution
This commit is contained in:
parent
155421216b
commit
75f52f04d8
|
|
@ -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:
|
||||||
|
|
@ -159,7 +158,7 @@ jobs:
|
||||||
test_frontend:
|
test_frontend:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
name: Test taskana-web
|
name: Test taskana-web
|
||||||
needs: [compile_frontend, compile_backend]
|
needs: [ compile_frontend, compile_backend ]
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
@ -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
|
||||||
|
|
@ -223,7 +221,7 @@ jobs:
|
||||||
test_backend:
|
test_backend:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
name: Test ${{ matrix.module }} on ${{ matrix.database }}
|
name: Test ${{ matrix.module }} on ${{ matrix.database }}
|
||||||
needs: [compile_taskana-rest-spring-example-wildfly]
|
needs: [ compile_taskana-rest-spring-example-wildfly ]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
module:
|
module:
|
||||||
|
|
@ -293,7 +291,7 @@ jobs:
|
||||||
test_taskana-rest-spring-example-wildfly:
|
test_taskana-rest-spring-example-wildfly:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
name: Test taskana-rest-spring-example-wildfly on POSTGRES_10
|
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:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
@ -326,7 +324,7 @@ jobs:
|
||||||
name: Release artifacts to OSS Sonatype
|
name: Release artifacts to OSS Sonatype
|
||||||
if: github.repository == 'Taskana/taskana' && ( startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master' ) && github.head_ref == ''
|
if: github.repository == 'Taskana/taskana' && ( startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master' ) && github.head_ref == ''
|
||||||
needs:
|
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)
|
# 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)
|
# we should execute this command before interacting with gpg (otherwise gpg won't work)
|
||||||
env:
|
env:
|
||||||
|
|
@ -396,7 +394,7 @@ jobs:
|
||||||
name: Deploy demo app to IBM Cloud Foundry
|
name: Deploy demo app to IBM Cloud Foundry
|
||||||
if: github.repository == 'Taskana/taskana' && github.ref == 'refs/heads/master' && github.head_ref == ''
|
if: github.repository == 'Taskana/taskana' && github.ref == 'refs/heads/master' && github.head_ref == ''
|
||||||
needs:
|
needs:
|
||||||
[test_frontend, test_backend, test_taskana-rest-spring-example-wildfly]
|
[ test_frontend, test_backend, test_taskana-rest-spring-example-wildfly ]
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
@ -452,7 +450,7 @@ jobs:
|
||||||
# no pull request and not on release
|
# no pull request and not on release
|
||||||
if: github.head_ref == '' && !startsWith(github.ref, 'refs/tags')
|
if: github.head_ref == '' && !startsWith(github.ref, 'refs/tags')
|
||||||
needs:
|
needs:
|
||||||
[test_frontend, test_backend, test_taskana-rest-spring-example-wildfly]
|
[ test_frontend, test_backend, test_taskana-rest-spring-example-wildfly ]
|
||||||
steps:
|
steps:
|
||||||
- name: Git checkout
|
- name: Git checkout
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue