From 3377e30931aa9f54a0528deba4f91d34fd95b2dc Mon Sep 17 00:00:00 2001 From: Richard87 Date: Thu, 18 Apr 2024 10:13:26 +0200 Subject: [PATCH] exit failed --- .github/workflows/pr.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index cec382d..82ee525 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -90,7 +90,14 @@ jobs: local msg="${3}" CURL_RESPONSE=$(curl --write-out '%{http_code}' --output /dev/null --silent --header "Authorization: Bearer ${token}" http://localhost:8000/auth) - printf "Test: %15s: Result %s == %s\n" "${msg}" "${expected}" "${CURL_RESPONSE}" + printf "Test: %15s: Result %s == %s: " "${msg}" "${expected}" "${CURL_RESPONSE}" + + if [ "${2}" != "${CURL_RESPONSE}" ]; then + printf "Failed\n" + exit 255 + fi + + printf "OK\n" } radix-oauth-guard &