diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index a649984e..d1428c78 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: echo "time_spent=$(/usr/bin/time -o /dev/stdout -f "%e" wget --waitretry=60 http://localhost:3000 | sed -e 's/^\([0-9]*\)\.00/\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