IntersectMBO / cardano-api

Cardano API
Apache License 2.0
22 stars 20 forks source link

Show diff on failure in cabal-gild check action #605

Closed palas closed 1 month ago

palas commented 1 month ago

Changelog

- description: |
    Added diff to output of cardano-gild check action
  type:
  - test           # fixes/modifies tests

Context

It is nice to know what is wrong specifically with the formatting when CI fails, so this PR modifies the cardano-gild action to show a diff when it fails.

I am also using the opportunity to fix a wrong variable name.

Related PR on cardano-cli: https://github.com/IntersectMBO/cardano-cli/pull/857

How to trust this PR

This is what happens when format check fails: Failed run

Checklist