Update .gitlab-ci.yml file
This commit is contained in:
		
							parent
							
								
									71c233004d
								
							
						
					
					
						commit
						7635aab409
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -16,6 +16,12 @@ | |||
| # This specific template is located at: | ||||
| # https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml | ||||
| 
 | ||||
| image: node:latest | ||||
| 
 | ||||
| cache: | ||||
|   paths: | ||||
|     - node_modules/ | ||||
| 
 | ||||
| stages:          # List of stages for jobs, and their order of execution | ||||
|   - build | ||||
|   - test | ||||
|  | @ -32,6 +38,7 @@ unit-test-job:   # This job runs in the test stage. | |||
|   stage: test    # It only starts when the job in the build stage completes successfully. | ||||
|   script: | ||||
|     - echo "Running unit tests..." | ||||
|     - npm i | ||||
|     - npm test | ||||
| 
 | ||||
| lint-test-job:   # This job also runs in the test stage. | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Ava Gaiety Wroten
						Ava Gaiety Wroten