From d4530682f90d0b3444ea29715ab78d06df544cc3 Mon Sep 17 00:00:00 2001 From: KV-Tube Deployer Date: Sat, 28 Mar 2026 08:57:27 +0700 Subject: [PATCH] test: check git clone connectivity --- .forgejo/workflows/test-clone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .forgejo/workflows/test-clone.yml diff --git a/.forgejo/workflows/test-clone.yml b/.forgejo/workflows/test-clone.yml new file mode 100644 index 0000000..f1d25ab --- /dev/null +++ b/.forgejo/workflows/test-clone.yml @@ -0,0 +1,27 @@ +name: Test Git Clone + +on: + push: + branches: [main, master] + workflow_dispatch: + +jobs: + test: + runs-on: docker + steps: + - name: Test clone + run: | + echo "Testing DNS..." + nslookup git.khoavo.myds.me || echo "DNS failed" + echo "---" + echo "Testing curl..." + curl -s -o /dev/null -w "%{http_code}" https://git.khoavo.myds.me/vndangkhoa/kv-tube || echo "curl failed" + echo "" + echo "---" + echo "Testing git clone..." + git clone https://git.khoavo.myds.me/vndangkhoa/kv-tube.git /tmp/test-clone 2>&1 || echo "Clone failed" + echo "---" + if [ -d /tmp/test-clone ]; then + echo "Clone succeeded!" + cd /tmp/test-clone && git log --oneline -3 + fi