Skip to content

Commit bd2c0fe

Browse files
committed
Fix-Demo
1 parent 93e99a6 commit bd2c0fe

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ jobs:
414414
deploy_to_azure:
415415
runs-on: ubuntu-20.04
416416
name: Deploy demo app to Microsoft Azure
417-
if: github.repository == 'Taskana/taskana' && github.ref == 'refs/heads/master' && github.head_ref == ''
417+
if: github.repository == 'Taskana/taskana' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/deploy-demo-fix') && github.head_ref == ''
418418
needs: [ test_frontend, test_e2e, test_backend ]
419419
steps:
420420
- name: Git checkout
@@ -462,7 +462,7 @@ jobs:
462462
- name: Wait for Azure for 60 seconds
463463
uses: jakejarvis/wait-action@master
464464
with:
465-
time: '60s'
465+
time: '100s'
466466
- name: Smoke test documentation
467467
run: ci/verify_docs_alive.sh
468468
- name: Cancel workflow

ci/verify_docs_alive.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
#!/bin/bash
22
set -e # fail fast
33
set -x
4+
45
BASE_URL=https://taskana.azurewebsites.net/taskana
6+
TIMEOUT=30 # seconds
57

6-
test 200 -eq "$(curl -sw "%{http_code}" -o /dev/null "$BASE_URL/docs/rest/rest-api.html")"
7-
test 200 -eq "$(curl -sw "%{http_code}" -o /dev/null "$BASE_URL/docs/rest/simplehistory-rest-api.html")"
8-
test 200 -eq "$(curl -sw "%{http_code}" -o /dev/null "$BASE_URL/docs/rest/routing-rest-api.html")"
8+
test 200 -eq "$(curl -sw "%{http_code}" -o /dev/null --connect-timeout $TIMEOUT --max-time $TIMEOUT "$BASE_URL/docs/rest/rest-api.html")"
9+
test 200 -eq "$(curl -sw "%{http_code}" -o /dev/null --connect-timeout $TIMEOUT --max-time $TIMEOUT "$BASE_URL/docs/rest/simplehistory-rest-api.html")"
10+
test 200 -eq "$(curl -sw "%{http_code}" -o /dev/null --connect-timeout $TIMEOUT --max-time $TIMEOUT "$BASE_URL/docs/rest/routing-rest-api.html")"
911
for module in taskana-core taskana-spring; do
10-
test 200 -eq "$(curl -sw "%{http_code}" -o /dev/null "$BASE_URL/docs/java/$module/index.html")"
12+
test 200 -eq "$(curl -sw "%{http_code}" -o /dev/null --connect-timeout $TIMEOUT --max-time $TIMEOUT "$BASE_URL/docs/java/$module/index.html")"
1113
done
1214
for module in taskana-cdi; do
13-
test 200 -eq "$(curl -sw "%{http_code}" -o /dev/null "$BASE_URL/docs/java/$module/pro/taskana/common/internal/package-summary.html")"
15+
test 200 -eq "$(curl -sw "%{http_code}" -o /dev/null --connect-timeout $TIMEOUT --max-time $TIMEOUT "$BASE_URL/docs/java/$module/pro/taskana/common/internal/package-summary.html")"
1416
done

0 commit comments

Comments
 (0)