Skip to content

Commit d77f36a

Browse files
authored
Add health check for etherpad service (#144)
* Add health check for etherpad service Added a step to wait for the etherpad service to be healthy before scanning. * Add health check for etherpad in e2e test workflow Added a step to wait for etherpad to be healthy before scanning.
1 parent 1b2cb1d commit d77f36a

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ jobs:
148148
- name: Install dependencies
149149
run: composer install --prefer-dist --no-progress
150150

151+
- name: Wait until etherpad is healthy
152+
run: |
153+
until curl -s -f -o /dev/null "http://localhost:8080/etherpad"
154+
do
155+
sleep 2
156+
done
157+
151158
- name: Scan etherpad instance
152159
run: |
153160
set -euo pipefail
@@ -374,6 +381,13 @@ jobs:
374381
- name: Install dependencies
375382
run: composer install --prefer-dist --no-progress
376383

384+
- name: Wait until etherpad is healthy
385+
run: |
386+
until curl -s -f -o /dev/null "http://localhost:9001"
387+
do
388+
sleep 2
389+
done
390+
377391
- name: Scan etherpad instance
378392
run: |
379393
set -euo pipefail

0 commit comments

Comments
 (0)