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