mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	CI: added a clang-format job
This commit is contained in:
		| @@ -3,6 +3,7 @@ | ||||
| BasedOnStyle: Google | ||||
| Standard: Cpp03 | ||||
| AllowShortFunctionsOnASingleLine: Empty | ||||
| IncludeBlocks: Preserve | ||||
|  | ||||
| # Always break after if to get accurate coverage | ||||
| AllowShortIfStatementsOnASingleLine: false | ||||
|   | ||||
							
								
								
									
										15
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -3,8 +3,22 @@ name: Continuous Integration | ||||
| on: [push, pull_request] | ||||
|  | ||||
| jobs: | ||||
|   clang-format: | ||||
|     name: Clang-Format | ||||
|     runs-on: ubuntu-20.04 | ||||
|     steps: | ||||
|       - name: Install | ||||
|         run: sudo apt-get install -y clang-format | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v2 | ||||
|       - name: Format | ||||
|         run: find src/ extras/ -name '*.[ch]pp' | xargs clang-format -i --verbose --style=file | ||||
|       - name: Diff | ||||
|         run: git diff --exit-code | ||||
|  | ||||
|   gcc: | ||||
|     name: GCC | ||||
|     needs: clang-format | ||||
|     runs-on: ubuntu-20.04 | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
| @@ -51,6 +65,7 @@ jobs: | ||||
|  | ||||
|   clang: | ||||
|     name: Clang | ||||
|     needs: clang-format | ||||
|     runs-on: ubuntu-20.04 | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|   | ||||
							
								
								
									
										2
									
								
								extras/tests/catch/.clang-format
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								extras/tests/catch/.clang-format
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| DisableFormat: true | ||||
| SortIncludes: false | ||||
		Reference in New Issue
	
	Block a user