ci: improve prettier coverage #1523
							
								
								
									
										11
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@ -13,4 +13,13 @@ jobs:
 | 
				
			|||||||
            - run: npm ci
 | 
					            - run: npm ci
 | 
				
			||||||
            - run: cp config.json.example config.json
 | 
					            - run: cp config.json.example config.json
 | 
				
			||||||
            - run: npm run verify
 | 
					            - run: npm run verify
 | 
				
			||||||
            - run: npm run lint
 | 
					            - run: npm run lint:ci
 | 
				
			||||||
 | 
					            - run: npm run prettier
 | 
				
			||||||
 | 
					            - name: Fail if there are uncommitted changes
 | 
				
			||||||
 | 
					              run: |
 | 
				
			||||||
 | 
					                if [[ -n "$(git status --porcelain)" ]]; then
 | 
				
			||||||
 | 
					                  echo "Uncommitted changes detected:"
 | 
				
			||||||
 | 
					                  git status
 | 
				
			||||||
 | 
					                  git diff
 | 
				
			||||||
 | 
					                  exit 1
 | 
				
			||||||
 | 
					                fi
 | 
				
			||||||
 | 
				
			|||||||
@ -9,6 +9,7 @@
 | 
				
			|||||||
    "build": "tsc --incremental --sourceMap && ncp static/webui build/static/webui",
 | 
					    "build": "tsc --incremental --sourceMap && ncp static/webui build/static/webui",
 | 
				
			||||||
    "verify": "tsgo --noEmit",
 | 
					    "verify": "tsgo --noEmit",
 | 
				
			||||||
    "lint": "eslint --ext .ts .",
 | 
					    "lint": "eslint --ext .ts .",
 | 
				
			||||||
 | 
					    "lint:ci": "eslint --ext .ts --rule \"prettier/prettier: off\" .",
 | 
				
			||||||
    "lint:fix": "eslint --fix --ext .ts .",
 | 
					    "lint:fix": "eslint --fix --ext .ts .",
 | 
				
			||||||
    "prettier": "prettier --write .",
 | 
					    "prettier": "prettier --write .",
 | 
				
			||||||
    "update-translations": "cd scripts && node update-translations.js"
 | 
					    "update-translations": "cd scripts && node update-translations.js"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user