test: check git clone connectivity
Some checks failed
Build & Push Docker Image / build (push) Failing after 10s
Test Git Clone / test (push) Successful in 10s
Test Host / test (push) Successful in 3s

This commit is contained in:
KV-Tube Deployer 2026-03-28 08:57:27 +07:00
parent 6433532a28
commit d4530682f9

View file

@ -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