From 601da06ba215b66de07914c803586c75c0d34ec7 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Fri, 9 Feb 2024 11:14:40 +0100 Subject: [PATCH] fix(matrix-outputs): expected tests result Signed-off-by: Emilien Escalle --- .github/workflows/__test-action-matrix-outputs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/__test-action-matrix-outputs.yml b/.github/workflows/__test-action-matrix-outputs.yml index c597025..65e61a8 100644 --- a/.github/workflows/__test-action-matrix-outputs.yml +++ b/.github/workflows/__test-action-matrix-outputs.yml @@ -94,7 +94,7 @@ jobs: fi # Output result must contain the first and third entries - if [ "$(echo "$OUTPUT_RESULT" | jq -e '. | map(.test) | sort')" != '["test content 1","test content 3"]' ]; then + if [ "$(echo "$OUTPUT_RESULT" | jq -ce '. | sort')" != '[{"test":"test content 1"},{"test":"test content 3"}]' ]; then echo "Get matrix outputs result is not valid" exit 1 fi