output of running fourmolu sometimes doesn't appear in the GitHub Action logs
cdepillabout opened this issue · 2 comments
It is incredibly difficult today to determine where the fault lies in the codebase, since the Action doesn't say anything about which files are not formatted, neither in the files view, nor in the action interface
This is the faulty run
Originally posted by @tchoutri in #1 (comment)
As shown above in https://github.com/flora-pm/flora-server/runs/6845560053?check_suite_focus=true, it does appear that this fourmolu action is not correctly outputting which files are not formatted correctly.
I created a test PR on this repo just to make sure that the fourmolu-action does correctly give warnings in #5. It appears to work as expected.
@tchoutri I took a look at your job, and the one suspicious thing I noticed is that you aren't calling the checkout action anywhere:
You'll likely need the checkout action as well just so the fourmolu action can see your Haskell source code?
I imagine we need a "full" example in the README that can easily be copy-pasted.
@cdepillabout haha you're right, this was indeed the problem! It's just that the failure mode wasn't hinting at it. :) I consider this issue closed. :)