You've already forked pigallery2
							
							
				mirror of
				https://github.com/bpatrik/pigallery2.git
				synced 2025-10-30 23:57:43 +02:00 
			
		
		
		
	Adding explicit linting step to workflow
This commit is contained in:
		
							
								
								
									
										10
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -47,10 +47,16 @@ jobs: | ||||
|           sleep 1 | ||||
|         done | ||||
|  | ||||
|     - name: npm install, build, and test | ||||
|     - name: npm install and build | ||||
|       run: | | ||||
|         npm ci | ||||
|         npm run build --if-present | ||||
|         npm run build | ||||
|  | ||||
|     - name: tslint | ||||
|       run: | | ||||
|         npm run lint | ||||
|     - name: test | ||||
|       run: | | ||||
|         npm test | ||||
|       env: | ||||
|         MYSQL_HOST: localhost | ||||
|   | ||||
| @@ -16,4 +16,5 @@ before_install: | ||||
| install: | ||||
|   - npm ci | ||||
|   - npm run build | ||||
|   - npm run lint | ||||
| after_success: npm run coverage | ||||
|   | ||||
| @@ -12,7 +12,7 @@ | ||||
|     "build-en": "tsc && gulp build-prod --languages=en", | ||||
|     "create-release": "gulp create-release", | ||||
|     "build-backend": "tsc", | ||||
|     "pretest": "npm run lint && tsc", | ||||
|     "pretest": "tsc", | ||||
|     "test": "ng test  && nyc mocha --recursive test", | ||||
|     "lint": "tslint --project tsconfig.json src/**/**.ts test/**/**.ts", | ||||
|     "coverage": "nyc report --reporter=text-lcov | coveralls", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user