phpDocumentor / ReflectionDocBlock

MIT License
9.35k stars 119 forks source link

GH Actions: fail the build if a test run fails #290

Closed jrfnl closed 3 years ago

jrfnl commented 3 years ago

The way things were set up now in the phpunit job, no matter whether tests passed or failed, the workflow would always continue.

I suspect this may have been set-up this way to make sure that all variations of test runs will actually be run ? The downside is that, while you will see a :x: for the individual build in the workflow summary, the workflow will not be marked as failed, nor will the individual test builds be marked as failed.

If we look back at the last time the workflow was run completely, this can be seen in the annotations below the summary, which show that the Windows test runs all failed. https://github.com/phpDocumentor/ReflectionDocBlock/actions/runs/370378454

I'm proposing to change this now by:

Opening as draft to expose issue #287 properly.

jaapio commented 3 years ago

@jrfnl could you please update this pr?

jrfnl commented 3 years ago

@jaapio Rebased. Still in draft due to issue #287 needing solving first.

jaapio commented 3 years ago

@jrfnl #287 has been closed. I think this pr can be rebased and merged? Or do you want to introduce some more changes before merging this?