From 0ca546a9706f1be5468ba9504d846ab02d1f24e1 Mon Sep 17 00:00:00 2001 From: Peter Johanson Date: Mon, 13 Nov 2023 20:32:42 -0800 Subject: [PATCH] chore(build): Add multiple tries to wget step. --- .github/workflows/containers.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index a649984e..36b1710b 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -401,17 +401,16 @@ jobs: run: cd docs && npm run prettier:check - name: Test docs start (webpack-dev-server) run: cd docs && timeout -s SIGINT 60 npm run start & - - run: sleep 20 - name: Test docs wget (webpack-dev-server) - run: wget http://localhost:3000 - - run: sleep 10 + id: wget-webpack-dev-server + run: export TIMEFORMAT="%R"; echo "time_spent=$((time wget --waitretry=60 http://localhost:3000) 2>&1 | sed -e 's/^\([0-9]*\)\..*/\1/' >> $GITHUB_OUTPUT + - run: sleep $(expr 60 - {{ steps.wget-webpack-dev-server.outputs.time_spent }}) - name: Test docs build (webpack) run: cd docs && npm run build - name: Test docs serve (webpack) - run: cd docs && timeout -s SIGINT 10 npm run serve & - - run: sleep 5 + run: cd docs && timeout -s SIGINT 30 npm run serve & - name: Test docs wget (webpack) - run: wget http://localhost:3000 + run: wget --waitretry=30 http://localhost:3000 - name: Test less run: less --version - name: Test PAGER