mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	CI: check URLs
This commit is contained in:
		
							
								
								
									
										7
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -17,6 +17,13 @@ jobs: | ||||
|         run: | | ||||
|           find src/ extras/ -name '*.[ch]pp' | xargs clang-format -i --verbose --style=file | ||||
|           git diff --exit-code | ||||
|       - name: Check URLs | ||||
|         run: | | ||||
|           grep -hREo "(http|https)://[a-zA-Z0-9./?=_%:-]*" src/ | sort -u | while read -r URL | ||||
|           do | ||||
|             STATUS=$(curl -s -o /dev/null -I -w "%{http_code}" "$URL") | ||||
|             [ "$STATUS" -ge 400 ] && echo "::warning title=HTTP $STATUS::$URL returned $STATUS" | ||||
|           done || true | ||||
|  | ||||
|   gcc: | ||||
|     name: GCC | ||||
|   | ||||
		Reference in New Issue
	
	Block a user