From c653d361d6de09a4dca641b5faca0c1ff7224c20 Mon Sep 17 00:00:00 2001 From: natxocc Date: Sun, 26 Apr 2026 18:12:14 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20.github/workflows/ping.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ping.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/ping.yml diff --git a/.github/workflows/ping.yml b/.github/workflows/ping.yml new file mode 100644 index 0000000..253bafb --- /dev/null +++ b/.github/workflows/ping.yml @@ -0,0 +1,30 @@ +name: Network Diagnostic + +on: + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check connectivity + run: | + echo "Testing network from runner" + + echo "--- HTTP/S connectivity ---" + curl -v --connect-timeout 3 http://gitea:3000 2>&1 | head -5 + curl -v --connect-timeout 3 http://192.168.1.100:3333 2>&1 | head -5 + curl -v --connect-timeout 3 https://git.natxocc.com 2>&1 | head -5 + + echo "--- Ping via nc (port open) ---" + nc -zv -w 2 gitea 3000 2>&1 || echo "gitea:3000 failed" + nc -zv -w 2 192.168.1.100 3333 2>&1 || echo "192.168.1.100:3333 failed" + nc -zv -w 2 git.natxocc.com 443 2>&1 || echo "git.natxocc.com:443 failed" + + echo "--- DNS resolution ---" + getent hosts gitea || echo "gitea not resolved" + getent hosts git.natxocc.com || echo "git.natxocc.com not resolved" + getent hosts host-gateway || echo "host-gateway not resolved" + + echo "--- Runner IPs ---" + ip addr show | grep "inet " | awk '{print $2}' \ No newline at end of file