chore(workflows/CI): change git diff to not be quiet anymore #127
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR changes the CI's "git diff" test (which is used to check if the tests changed something that it shouldnt) to not be quiet anymore and list a summary of files which were changed to quickly see which tests failed.
previously:
$ git diff --exit-code --quiet <no output>
now:
$ git diff --exit-code --stat src/code.rs | 2 +- test/autogenerated_all/models/todos/generated.rs | 2 +- test/autogenerated_attributes/models/todos/generated.rs | 2 +- test/autogenerated_primary_keys/models/todos/generated.rs | 2 +- test/cleanup_generated_content/models/todos/generated.rs | 2 +- test/create_update_bytes_cow/models/todos/generated.rs | 2 +- test/create_update_bytes_slice/models/todos/generated.rs | 2 +- test/create_update_str_cow/models/todos/generated.rs | 2 +- test/create_update_str_str/models/todos/generated.rs | 2 +- test/custom_model_and_schema_path/data/models/table_a/generated.rs | 2 +- test/custom_model_and_schema_path/data/models/table_b/generated.rs | 2 +- test/custom_model_path/models/table_a/generated.rs | 2 +- test/custom_model_path/models/table_b/generated.rs | 2 +- test/manual_primary_keys/models/todos/generated.rs | 2 +- test/multiple_primary_keys/models/users/generated.rs | 2 +- test/no_default_features/models/todos/generated.rs | 2 +- test/once_common_structs/models/common.rs | 2 +- test/once_common_structs_once_connection_type/models/common.rs | 2 +- test/once_common_structs_once_connection_type_single_file/models/common.rs | 2 +- test/once_connection_type/models/table1/generated.rs | 2 +- test/once_connection_type/models/table2/generated.rs | 2 +- test/readonly/models/normal/generated.rs | 2 +- test/readonly/models/prefix_table/generated.rs | 2 +- test/readonly/models/prefix_table_suffix/generated.rs | 2 +- test/readonly/models/table_suffix/generated.rs | 2 +- test/simple_table/models/todos/generated.rs | 2 +- test/simple_table_async/models/todos/generated.rs | 2 +- test/simple_table_custom_schema_path/models/todos/generated.rs | 2 +- test/simple_table_no_serde/models/todos/generated.rs | 2 +- test/single_model_file/models/table1.rs | 2 +- test/single_model_file/models/table2.rs | 2 +- test/use_statements/models/fang_tasks/generated.rs | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-)
alternatively, we could also just remove that parameter to print the full diff of each file (which would be quite verbose)