hauleth / mix_machine

Machine output for Mix tasks
MIT License
16 stars 1 forks source link

Unable to use --warnings-as-errors to fail CI on compilation warnings #16

Open axelson opened 2 years ago

axelson commented 2 years ago

I'm having trouble getting mix_machine to work how I'd expect it to. I want to use mix_machine in CI and have it cause CI to fail if there's a compilation warning. But if I use mix compile.machine --warnings-as-errors and there's a compilation warning then the sarif report doesn't get generated. And if I don't use --warnings-as-errors then CI doesn't fail. However when not in the CI environment (GitHub actions) mix compile.machine --warnings-as-errors does generate a report.

I'm testing with:

It looks like the Mix.Task.run("compile", argv) never returns