Skip to content

Commit 633176f

Browse files
committed
Add unit tests step and report results
1 parent c3a6a3d commit 633176f

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/main.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,26 @@ jobs:
4545
cd examples
4646
./build-all.sh --profile=validation
4747
48+
- name: Run unit tests
49+
shell: bash
50+
run: |
51+
cd tests/unit_tests
52+
alr build \
53+
--profiles=unit_tests=validation,libsap=validation \
54+
-- \
55+
-XUNIT_TEST_REPORT_FORMAT=XML
56+
mkdir reports
57+
bin/unit_tests > reports/unit_tests.xml
58+
cat unit_tests.xml
59+
60+
- name: Test Report
61+
uses: dorny/test-reporter@v2
62+
if: ${{ !cancelled() }} # run this step even if previous step failed
63+
with:
64+
name: Unit Tests
65+
path: tests/unit_tests/reports/*.xml
66+
reporter: java-junit
67+
4868
prove:
4969
needs: setup
5070
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)