Skip to content

Commit

Permalink
chore(build): Add multiple tries to wget step.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Nov 14, 2023
1 parent 5ef994b commit 0ca546a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ca546a

Please sign in to comment.