IntersectMBO / cardano-cli

This repository contains sources for the command-line interface (CLI) tool for interacting with the Cardano blockchain.
Apache License 2.0
39 stars 14 forks source link

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

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-api: https://github.com/IntersectMBO/cardano-api/pull/605

How to trust this PR

This is what happens when format check fails: Failed run

Checklist