Set ZEBRA_SKIP_NETWORK_TESTS using Windows syntax #1782
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
The large sync tests run on Windows, but we want to disable them.
The "Show env vars" CI step prints
ZEBRA_SKIP_NETWORK_TESTS=
on Windows, but we expectZEBRA_SKIP_NETWORK_TESTS=1
.The
if
command should support==
,!=
, and||
, so they are unlikely to be the problem:https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#operators
Solution
Use Powershell syntax to set
ZEBRA_SKIP_NETWORK_TESTS
on Windows:https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#environment-files
Also skip the entire large sync test step on Ubuntu and Windows, because the tests are skipped anyway due to
ZEBRA_SKIP_NETWORK_TESTS
. This saves some compilation time.Outcome
The
Show env vars
step in this PR outputs:🎉
Review
This review is a high priority if Windows CI keeps failing after #1777.