mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 09:50:23 +08:00 
			
		
		
		
	Add back CI check for uncommited changes
This commit is contained in:
		
							
								
								
									
										7
									
								
								.github/workflows/dev.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/dev.yml
									
									
									
									
										vendored
									
									
								
							@@ -20,3 +20,10 @@ jobs:
 | 
				
			|||||||
        wrapper-directory: __tests__/data/basic
 | 
					        wrapper-directory: __tests__/data/basic
 | 
				
			||||||
        build-root-directory: __tests__/data/basic
 | 
					        build-root-directory: __tests__/data/basic
 | 
				
			||||||
        arguments: help
 | 
					        arguments: help
 | 
				
			||||||
 | 
					    - name: Check for uncommitted changes
 | 
				
			||||||
 | 
					      # Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed.
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        git diff --exit-code --stat -- . ':!node_modules' \
 | 
				
			||||||
 | 
					        || (echo "##[error] found changed files after build. please 'npm run all'" \
 | 
				
			||||||
 | 
					                 "and check in all changes" \
 | 
				
			||||||
 | 
					            && exit 1)
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										7
									
								
								.github/workflows/prod.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/prod.yml
									
									
									
									
										vendored
									
									
								
							@@ -19,3 +19,10 @@ jobs:
 | 
				
			|||||||
        wrapper-directory: __tests__/data/basic
 | 
					        wrapper-directory: __tests__/data/basic
 | 
				
			||||||
        build-root-directory: __tests__/data/basic
 | 
					        build-root-directory: __tests__/data/basic
 | 
				
			||||||
        arguments: help
 | 
					        arguments: help
 | 
				
			||||||
 | 
					    - name: Check for uncommitted changes
 | 
				
			||||||
 | 
					      # Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed.
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        git diff --exit-code --stat -- . ':!node_modules' \
 | 
				
			||||||
 | 
					        || (echo "##[error] found changed files after build. please 'npm run all'" \
 | 
				
			||||||
 | 
					                 "and check in all changes" \
 | 
				
			||||||
 | 
					            && exit 1)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user