Optimized cache for CI
This commit is contained in:
		@@ -5,16 +5,17 @@ stages:
 | 
				
			|||||||
    - build
 | 
					    - build
 | 
				
			||||||
    - package
 | 
					    - package
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cache:
 | 
					cache: &global_cache
 | 
				
			||||||
    - key:
 | 
					    key:
 | 
				
			||||||
          files:
 | 
					        files:
 | 
				
			||||||
              - yarn.lock
 | 
					            - yarn.lock
 | 
				
			||||||
              - frontend/yarn.lock
 | 
					            - frontend/yarn.lock
 | 
				
			||||||
      paths:
 | 
					    paths:
 | 
				
			||||||
          - .yarn
 | 
					        - .yarn
 | 
				
			||||||
          - node_modules
 | 
					        - node_modules
 | 
				
			||||||
          - frontend/.yarn
 | 
					        - frontend/.yarn
 | 
				
			||||||
          - frontend/node_modules
 | 
					        - frontend/node_modules
 | 
				
			||||||
 | 
					    policy: pull
 | 
				
			||||||
 | 
					
 | 
				
			||||||
before_script:
 | 
					before_script:
 | 
				
			||||||
    - yarn install --cache-folder .yarn --frozen-lockfile
 | 
					    - yarn install --cache-folder .yarn --frozen-lockfile
 | 
				
			||||||
@@ -23,11 +24,17 @@ before_script:
 | 
				
			|||||||
    - cd ..
 | 
					    - cd ..
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test_backend:
 | 
					test_backend:
 | 
				
			||||||
 | 
					    cache:
 | 
				
			||||||
 | 
					        <<: *global_cache
 | 
				
			||||||
 | 
					        policy: pull-push
 | 
				
			||||||
    stage: test
 | 
					    stage: test
 | 
				
			||||||
    script:
 | 
					    script:
 | 
				
			||||||
        - yarn lint
 | 
					        - yarn lint
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test_frontend:
 | 
					test_frontend:
 | 
				
			||||||
 | 
					    cache:
 | 
				
			||||||
 | 
					        <<: *global_cache
 | 
				
			||||||
 | 
					        policy: pull-push
 | 
				
			||||||
    stage: test
 | 
					    stage: test
 | 
				
			||||||
    script:
 | 
					    script:
 | 
				
			||||||
        - cd frontend
 | 
					        - cd frontend
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user