Write a simple program to automate a testing process.
Implement automate_tests(test_cases) to compare each test case's expected and actual values and return an ordered report. Each test case is a dictionary with a unique name, expected, and actual field; values are JSON-compatible. Return passed, failed, and summary fields, preserving input order in both result lists.
def automate_tests(test_cases):