From 22667baea125c11eb437efd5f56d169f763bf233 Mon Sep 17 00:00:00 2001 From: YuryShkoda Date: Tue, 21 Jul 2026 13:06:12 +0300 Subject: [PATCH] chore: cleanup --- .github/workflows/server-tests.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/server-tests.yml b/.github/workflows/server-tests.yml index c03ba87..f8e2774 100644 --- a/.github/workflows/server-tests.yml +++ b/.github/workflows/server-tests.yml @@ -96,13 +96,19 @@ jobs: ip addr show tun0 || echo "no tun0 interface found" echo "--- ip route ---" ip route - echo "--- DNS resolution for target host ---" - getent hosts "$(echo '${{ secrets.SASJS_SERVER_URL }}' | sed -E 's#^[a-z]+://##; s#[:/].*##')" || echo "DNS resolution failed" + echo "--- DNS resolution check for target host (host/IP not printed) ---" + TARGET_HOST="$(echo '${{ secrets.SASJS_SERVER_URL }}' | sed -E 's#^[a-z]+://##; s#[:/].*##')" + if getent hosts "$TARGET_HOST" > /dev/null; then + echo "DNS resolution: OK" + else + echo "DNS resolution: FAILED" + fi shell: bash - name: Fetch SASJS server run: | - curl -v --retry 5 --retry-delay 5 --retry-all-errors --connect-timeout 15 --max-time 30 \ + curl -sS --retry 5 --retry-delay 5 --retry-all-errors --connect-timeout 15 --max-time 30 \ + -o /dev/null -w "HTTP status: %{http_code}\n" \ "${{ secrets.SASJS_SERVER_URL }}/SASjsApi/info" - name: Deploy sasjs-tests