Skip to content

fix: exit process with test script's exit code [NPPM-2038]#214

Merged
naxoc merged 1 commit intotrunkfrom
fix/success-fail
Jun 16, 2025
Merged

fix: exit process with test script's exit code [NPPM-2038]#214
naxoc merged 1 commit intotrunkfrom
fix/success-fail

Conversation

@naxoc
Copy link
Member

@naxoc naxoc commented Jun 10, 2025

We had some CI tests that were failing, but the job still marked them as successfully run.

This reports the process status as an exit code.

How to test the changes in this Pull Request:

  1. Run npm run test (I tested on newspack-plugin which is currently failing)
  2. Run echo $? and see that it is 0 without the patch and 1 with.

@naxoc naxoc self-assigned this Jun 10, 2025
@naxoc naxoc requested a review from a team as a code owner June 10, 2025 09:57
@leogermani
Copy link
Contributor

Works!

@leogermani
Copy link
Contributor

Also tested with newspack-popups that has passing tests :)

@naxoc naxoc merged commit 663bf68 into trunk Jun 16, 2025
3 checks passed
@matticbot
Copy link

🎉 This PR is included in version 5.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@naxoc naxoc deleted the fix/success-fail branch June 16, 2025 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants