Skip to content

Commit

Permalink
added more details in the Github Actions (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthdurai authored May 8, 2023
1 parent 8be5571 commit e089b8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/proto-schema-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,12 @@ jobs:
- name: Run ProtoBuf Backward compatibility changes
run: |
java -jar schemata.jar isBackwardCompatible -s model.desc -b base-branch/model.desc -p protobuf
exit_code=$?
if [ $exit_code -eq 0 ]; then
echo "ProtoBuf Backward compatibility check passed"
else
echo "ProtoBuf Backward compatibility check failed"
java -jar schemata.jar compatibilitySummary -s model.desc -b base-branch/model.desc -p protobuf
exit 1
fi
1 change: 0 additions & 1 deletion src/main/java/org/schemata/SchemataExecutor.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ public int compatibilitySummary() {
System.out.println("Schema is backward compatible");
return 0;
} else {
System.out.println("Schema is not backward compatible");
System.out.println("Incompatible fields:");
checker.summary().forEach(System.out::println);
return 1;
Expand Down

0 comments on commit e089b8a

Please sign in to comment.