mirror of
				https://github.com/XRPLF/clio.git
				synced 2025-11-04 03:45:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			409 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			409 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
runs:
 | 
						|
  using: composite
 | 
						|
  steps:
 | 
						|
    # Github's ubuntu-20.04 image already has clang-format-11 installed
 | 
						|
    - run: |
 | 
						|
        find src unittests -type f \( -name '*.cpp' -o -name '*.h' -o -name '*.ipp' \) -print0 | xargs -0 clang-format-11 -i
 | 
						|
      shell: bash
 | 
						|
 | 
						|
    - name: Check for differences
 | 
						|
      id: assert
 | 
						|
      shell: bash
 | 
						|
      run: |
 | 
						|
        git diff --color --exit-code | tee "clang-format.patch"
 |