From 0835838479c57add52f5394af9353c62053e25c7 Mon Sep 17 00:00:00 2001 From: Marina Date: Fri, 1 Mar 2024 13:52:54 +0300 Subject: [PATCH] set output --- .github/workflows/selenium_tests.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/selenium_tests.yml b/.github/workflows/selenium_tests.yml index 02396017..9dfdf0f2 100644 --- a/.github/workflows/selenium_tests.yml +++ b/.github/workflows/selenium_tests.yml @@ -21,7 +21,13 @@ jobs: run: | docker-compose -f docker-compose-tests.yml up -d sleep 120 - - name: Check tests + - name: Tests results run: | - [ $(docker-compose -f docker-compose-tests.yml logs selenium-tests | grep -c "OK") -eq 1 ] && echo true || echo false + if [ $(docker-compose -f docker-compose-tests.yml logs selenium-tests | grep -c "OK") -eq 1 ]; then + echo true + exit 0 + else + echo false + exit 1 + fi