diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index b530d5dc..2bb20aff 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -119,6 +119,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: gacts/install-hurl@v1 + - name: Wait until instance is up + run: hurl --test test/healthcheck.hurl --retry 3 --retry-interval 5000 - name: Run production tests run: hurl --test test/prod.hurl env: diff --git a/test/healthcheck.hurl b/test/healthcheck.hurl new file mode 100644 index 00000000..dc631686 --- /dev/null +++ b/test/healthcheck.hurl @@ -0,0 +1,2 @@ +GET https://music-library.claudio-ortolina.org/health +HTTP 200