mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 15:22:47 +01:00
Make curl retry more robust (#485)
* Make curl retry more robust * Update ubuntu runner
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user