Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gushmazuko committed Apr 17, 2024
1 parent ea18c06 commit ab28037
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,7 @@ jobs:
run: cat $PREFIX/etc/resolv.conf
- name: wait dns
run: |
echo "Checking DNS readiness..."
max_attempts=$((60 * 60 / 5))
attempt=1
while [ $attempt -le $max_attempts ]; do
if curl -Is https://termux.dev > /dev/null; then
echo "DNS is ready and HTTP request to Termux was successful."
break
else
if [ $attempt -eq $max_attempts ]; then
echo "Timeout reached. DNS is still not ready."
exit 1
fi
attempt=$((attempt + 1))
sleep 5
fi
done
ping -c 4 1.1.1.1
- name: Log the node version
run: |
uname -a
Expand Down

0 comments on commit ab28037

Please sign in to comment.