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 3df7bf3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,10 @@ jobs:
runs-on: ubuntu-latest
env:
docker-args: --rm --workdir /github/workspace -v /var/run/docker.sock:/var/run/docker.sock -v /home/runner/work/_temp:/home/runner/work/_temp -v /home/runner/work/_temp/_github_home:/github/home -v /home/runner/work/_temp/_github_workflow:/github/workflow -v /home/runner/work/_temp/_runner_file_commands:/github/file_commands -v ${{ github.workspace }}:/github/workspace
container-id: ${{ github.run_id }}_${{ github.run_number}}
defaults:
run:
shell: /usr/bin/docker exec candidate /bin/bash {0}
shell: /usr/bin/docker exec ${{ env.container-id }} /bin/bash {0}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -350,7 +351,7 @@ jobs:
${{ runner.os }}/${{ env.cache-name }}/
- name: Create and run container from 'build' candidate image
shell: bash
run: docker run -d -it --name candidate ${{ env.docker-args }} ${{ steps.paths.outputs.build-candidate }}
run: docker run -d -it --name ${{ env.container-id }} ${{ env.docker-args }} ${{ steps.paths.outputs.build-candidate }}
- name: Fixes for git safety checks
run: git config --global --add safe.directory '*'
- name: Test cmake
Expand Down Expand Up @@ -401,17 +402,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: wget --waitretry=60 http://localhost:3000
- run: sleep 60
- 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 3df7bf3

Please sign in to comment.