Added node_modules cache to CI
This commit is contained in:
		@@ -5,17 +5,32 @@ stages:
 | 
				
			|||||||
    - build
 | 
					    - build
 | 
				
			||||||
    - package
 | 
					    - package
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					cache:
 | 
				
			||||||
 | 
					    - key:
 | 
				
			||||||
 | 
					          files:
 | 
				
			||||||
 | 
					              - package-lock.json
 | 
				
			||||||
 | 
					      paths:
 | 
				
			||||||
 | 
					          - node_modules
 | 
				
			||||||
 | 
					    - key:
 | 
				
			||||||
 | 
					          files:
 | 
				
			||||||
 | 
					              - frontend/package-lock.json
 | 
				
			||||||
 | 
					      paths:
 | 
				
			||||||
 | 
					          - frontend/node_modules
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					before_script:
 | 
				
			||||||
 | 
					    - npm ci
 | 
				
			||||||
 | 
					    - cd frontend
 | 
				
			||||||
 | 
					    - npm ci
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test_backend:
 | 
					test_backend:
 | 
				
			||||||
    stage: test
 | 
					    stage: test
 | 
				
			||||||
    script:
 | 
					    script:
 | 
				
			||||||
        - npm ci
 | 
					 | 
				
			||||||
        - npm run lint
 | 
					        - npm run lint
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test_frontend:
 | 
					test_frontend:
 | 
				
			||||||
    stage: test
 | 
					    stage: test
 | 
				
			||||||
    script:
 | 
					    script:
 | 
				
			||||||
        - cd frontend
 | 
					        - cd frontend
 | 
				
			||||||
        - npm ci
 | 
					 | 
				
			||||||
        - npm run lint
 | 
					        - npm run lint
 | 
				
			||||||
 | 
					
 | 
				
			||||||
build_backend:
 | 
					build_backend:
 | 
				
			||||||
@@ -24,7 +39,6 @@ build_backend:
 | 
				
			|||||||
        - job: test_backend
 | 
					        - job: test_backend
 | 
				
			||||||
          artifacts: false
 | 
					          artifacts: false
 | 
				
			||||||
    script:
 | 
					    script:
 | 
				
			||||||
        - npm ci
 | 
					 | 
				
			||||||
        - npm webpack
 | 
					        - npm webpack
 | 
				
			||||||
    artifacts:
 | 
					    artifacts:
 | 
				
			||||||
        paths:
 | 
					        paths:
 | 
				
			||||||
@@ -38,7 +52,6 @@ build_frontend:
 | 
				
			|||||||
          artifacts: false
 | 
					          artifacts: false
 | 
				
			||||||
    script:
 | 
					    script:
 | 
				
			||||||
        - cd frontend
 | 
					        - cd frontend
 | 
				
			||||||
        - npm ci
 | 
					 | 
				
			||||||
        - npm run lint
 | 
					        - npm run lint
 | 
				
			||||||
    artifacts:
 | 
					    artifacts:
 | 
				
			||||||
        paths:
 | 
					        paths:
 | 
				
			||||||
@@ -47,6 +60,7 @@ build_frontend:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
package_server:
 | 
					package_server:
 | 
				
			||||||
    stage: package
 | 
					    stage: package
 | 
				
			||||||
 | 
					    cache: []
 | 
				
			||||||
    needs:
 | 
					    needs:
 | 
				
			||||||
        - job: build_backend
 | 
					        - job: build_backend
 | 
				
			||||||
          artifacts: true
 | 
					          artifacts: true
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user