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:
|
||||
test: [ tickets, templates, playbooks ]
|
||||
auth: [ authelia ]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
@@ -62,13 +62,13 @@ jobs:
|
||||
yarn install
|
||||
yarn serve &
|
||||
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: sed -i 's/host.docker.internal/172.17.0.1/g' dev/nginx.conf
|
||||
- run: docker compose up --quiet-pull --detach
|
||||
working-directory: dev
|
||||
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'
|
||||
# run catalyst
|
||||
- run: |
|
||||
@@ -78,7 +78,7 @@ jobs:
|
||||
- run: bash start_dev.sh &
|
||||
working-directory: dev
|
||||
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
|
||||
- uses: cypress-io/github-action@v4
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user