kv-tube/.forgejo/workflows/test-clone.yml
KV-Tube Deployer d4530682f9
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
test: check git clone connectivity
2026-03-28 08:57:27 +07:00

27 lines
790 B
YAML

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