Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,7 @@ jobs:
[ "$(dist/arxmodel.exe --version | tr -d '\r')" = "arxmodel $ver" ]
dist/arxmodel.exe check --schema-dir testdata/schemas testdata/export
dist/arxmodel.exe merge --schema-dir testdata/schemas -o "$RUNNER_TEMP/model.arxml" testdata/export
# the only merge3 a -prod binary runs: a fault of the optimizer shows nowhere else
scripts/merge3_cli_test.sh dist/arxmodel.exe

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Ensure LF fixtures before running the test on Windows

On a Windows checkout with core.autocrlf=true, this test fails on line endings rather than a merge regression. scripts/merge3_cli_test.sh requires the JSON context to contain UUID=\"u1\">\n, but the checked-out ARXML contains CRLF; flatxml.source_xml() preserves those source bytes, so the report contains \r\n instead. The repository has no .gitattributes enforcing LF, and this Windows job does not disable checkout conversion. Ensure LF for the script and its fixtures, or make the context assertion accept CRLF, before adding this invocation.

Useful? React with 👍 / 👎.

dist/arxmodel.exe check --schema-dir testdata/schemas "$RUNNER_TEMP/model.arxml"
dist/arxmodel.exe check --format json --schema-dir testdata/schemas testdata/merge > "$RUNNER_TEMP/merge.json" || [ $? -eq 1 ]
Loading