Moved cache generation into if clause
This commit is contained in:
parent
2e5d965af3
commit
420fe10a9e
@ -15,10 +15,13 @@ cache:
|
||||
- frontend/node_modules
|
||||
|
||||
before_script:
|
||||
- yarn install
|
||||
- cd frontend
|
||||
- yarn install
|
||||
- cd ..
|
||||
- >
|
||||
if [ ! -d "node_modules" ]; then
|
||||
yarn install
|
||||
cd frontend
|
||||
yarn install
|
||||
cd ..
|
||||
fi
|
||||
|
||||
test_backend:
|
||||
stage: test
|
||||
|
Loading…
Reference in New Issue
Block a user