Skip to content

Commit

Permalink
feat: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jaironalves committed Jul 9, 2024
1 parent e066ef6 commit aef926f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,17 @@ jobs:
output_result="${{ steps.test-action.outputs.app-build_multiline }}"
output_result_escaped=$(printf "%s" "${output_result//\\/\\\\}")
if [[ "$output_result" == "$expected_result" ]]; then
if [[ "$output_result" != "$expected_result" ]]; then
echo "Test Passed: $test_name"
echo "### :white_check_mark: Test Passed: $test_name" >> $GITHUB_STEP_SUMMARY
else
echo "Test Failed: $test_name"
fi
echo "### :x: Test Failed: $test_name" >> $GITHUB_STEP_SUMMARY
output_result_content=$"Output Result:\n $output_result"
printf "%s\n" "$output_result_content"
echo "Expected Result:" >> $GITHUB_STEP_SUMMARY
echo "$expected_result" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
printf "%s\n" "$output_result" >> $GITHUB_STEP_SUMMARY
printf "%s\n" "$output_result_escaped" >> $GITHUB_STEP_SUMMARY
echo "Output Result:" >> $GITHUB_STEP_SUMMARY
echo "$output_result" >> $GITHUB_STEP_SUMMARY
fi

0 comments on commit aef926f

Please sign in to comment.