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