From 839230caebfc5f2997f6886ea92df2bf26bdb122 Mon Sep 17 00:00:00 2001 From: Nikita Pozdniakov Date: Tue, 27 Jan 2026 13:39:03 +0300 Subject: [PATCH] add Network smoke test --- .gitea/workflows/ci.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c32f079..8540022 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -14,18 +14,32 @@ jobs: - name: Checkout uses: https://gitea.nikitapozd.dev/actions/checkout@v6 + - name: Network smoke test + run: | + set -eux + ip link | sed -n '1,80p' + echo "--- resolv.conf ---" + cat /etc/resolv.conf || true + echo "--- DNS ---" + nslookup dl-cdn.alpinelinux.org || true + echo "--- download APKINDEX (10s) ---" + wget -S -O /dev/null --timeout=10 --tries=1 \ + https://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz + - name: Force APK to IPv4-only mirror shell: sh run: | set -eux sed -i 's|https://dl-cdn.alpinelinux.org|https://dl-4.alpinelinux.org|g' /etc/apk/repositories cat /etc/apk/repositories - - name: Install tools - shell: sh + + - name: Install tools (curl, jq) with verbose run: | set -eux - APK_PROGRESS=plain apk update -v --no-progress - APK_PROGRESS=plain apk add -v --no-cache curl jq + export APK_PROGRESS=plain + apk update -v --no-progress + apk add -v --no-cache curl jq + # - name: Install tools (curl, jq) with debug # shell: sh