Skip to content

Commit

Permalink
update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tevans committed Dec 10, 2024
1 parent 9319232 commit fa6b299
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,19 @@ jobs:
fi
env:
CTEST_OUTPUT_ON_FAILURE: true

- name: Unit tests
run: |
mkdir xml
for x in build/bin/test/test_*; do
name=$(basename $x); $x --log_level=all --log_format=JUNIT > xml/${name}.xml
name=$(basename $x)
$x --log_level=all
$x --log_level=all --log_format=JUNIT > xml/${name}.xml
sed -n '/^<?xml version="1.0" encoding="UTF-8"?>$/,$p' xml/${name}.xml > xml/${name}.xml-i
mv xml/${name}.xml-i xml/${name}.xml
done
env:
CTEST_OUTPUT_ON_FAILURE: true

- name: Upload Unit Test Results
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit fa6b299

Please sign in to comment.