From b6117bd52fc6a706f9d6b3385a2033fa3dc9f06e Mon Sep 17 00:00:00 2001 From: zagganas Date: Tue, 14 Jun 2022 10:24:12 +0000 Subject: [PATCH] Test workflow --- .github/workflows/pr-test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index d84c3b9..04ad4d9 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -27,15 +27,14 @@ jobs: uses: actions/checkout@v2 - name: Test build run: docker-compose up -d - - name: Sleep - run: sleep 30s - shell: bash - name: Test api shell: bash run: | CODE=`curl --write-out '%{http_code}' --output /dev/null --silent localhost:8080/index.php?r=site/health`; + echo $CODE; if [ $CODE!="200" ] then + docker-compose down exit 1; fi - name: End test