Open jessicatarra opened 2 months ago
This also happens when you add steps as follows:
scripts:
test:
steps:
- melos exec -f --dir-exists=test -- flutter test
- echo "Continue the step like nothing happened"
If you run melos test
you will hit exit code 0 on macOS.
This is not platform specific.
However, if you run melos exec -f --dir-exists=test -- flutter test
directly, you will get exit code 1.
@bvoq this issue is about the internal Melos windows tests. There should be another issue open for the issue you're describing though.
Is there an existing issue for this?
Version
main
Description
Currently, there are two issues related to the Windows environment:
The status codes when running some melos commands are not reliable. For example, the command
melos test --no-select
is expected to be the same as runningmelos exec --dir-exists=test --concurrency 1 -- "dart test"
. However, using the latter command directly provides the actual exit code of the process in windows environment pipeline, while the former does not.Due to the recent fix to maintain the working directory across script steps, as merged in PR #711, the log output will look like the following one:
Steps to reproduce
Run the test suite as a GitHub Actions Workflow: https://github.com/invertase/melos/actions/runs/10889115119
Expected behavior
Screenshots
No response
Additional context and comments
No response