Make curl retry more robust (#485)

* Make curl retry more robust

* Update ubuntu runner
This commit is contained in:
Jonas Plum
2022-10-04 19:02:16 +02:00
committed by GitHub
parent a9de5d8a3e
commit f902fb83c2

View File

@@ -50,7 +50,7 @@ jobs:
matrix: matrix:
test: [ tickets, templates, playbooks ] test: [ tickets, templates, playbooks ]
auth: [ authelia ] auth: [ authelia ]
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-go@v3 - uses: actions/setup-go@v3
@@ -62,13 +62,13 @@ jobs:
yarn install yarn install
yarn serve & yarn serve &
working-directory: ui working-directory: ui
- run: curl --head -X GET --retry 60 --retry-connrefused --retry-delay 10 http://localhost:8080 - run: curl --head -X GET --retry 60 --retry-all-errors --retry-delay 10 http://localhost:8080
# run containers # run containers
- run: sed -i 's/host.docker.internal/172.17.0.1/g' dev/nginx.conf - run: sed -i 's/host.docker.internal/172.17.0.1/g' dev/nginx.conf
- run: docker compose up --quiet-pull --detach - run: docker compose up --quiet-pull --detach
working-directory: dev working-directory: dev
if: matrix.auth == 'authelia' if: matrix.auth == 'authelia'
- run: curl --head -X GET --retry 60 --retry-connrefused --retry-delay 10 http://localhost:8082 - run: curl --head -X GET --retry 60 --retry-all-errors --retry-delay 10 http://localhost:8082
if: matrix.auth == 'authelia' if: matrix.auth == 'authelia'
# run catalyst # run catalyst
- run: | - run: |
@@ -78,7 +78,7 @@ jobs:
- run: bash start_dev.sh & - run: bash start_dev.sh &
working-directory: dev working-directory: dev
if: matrix.auth == 'authelia' if: matrix.auth == 'authelia'
- run: curl --head -X GET --retry 60 --retry-connrefused --retry-delay 10 http://localhost:8000 - run: curl --head -X GET --retry 60 --retry-all-errors --retry-delay 10 http://localhost:8000
# run cypress # run cypress
- uses: cypress-io/github-action@v4 - uses: cypress-io/github-action@v4
env: env: