Skip to content

Commit fcb7ff5

Browse files
Added tests result in JUNIT format to build artifacts (eclipse-leda#43)
1 parent a4382ff commit fcb7ff5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/actions/build-native-binary/action.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ runs:
135135
if: ${{ inputs.arch == 'amd64' }}
136136
run: |
137137
cd dist_${{ inputs.arch }}/utest
138-
./TestSelfUpdateAgent > ../../unit_tests_report_${{ inputs.arch }}.txt
138+
./TestSelfUpdateAgent > ../../unit_tests_report_${{ inputs.arch }}.txt --gtest_output=xml:../../unit_tests_report_${{ inputs.arch }}.xml
139139
shell: bash
140140

141141
- uses: uraimo/run-on-arch-action@v2
@@ -157,7 +157,7 @@ runs:
157157
echo "\nextra/selfupdateagent.crt" | tee -a /etc/ca-certificates.conf > /dev/null
158158
update-ca-certificates
159159
cd /sua/dist_arm64/utest
160-
LD_LIBRARY_PATH=../lib ./TestSelfUpdateAgent > ../../unit_tests_report_arm64.txt
160+
LD_LIBRARY_PATH=../lib ./TestSelfUpdateAgent > ../../unit_tests_report_arm64.txt --gtest_output=xml:../../unit_tests_report_arm64.xml
161161
162162
- name: Collect code-coverage for amd64
163163
if: ${{ inputs.arch == 'amd64' }}

.github/workflows/main.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
- name: Upload unit tests results to workspace
108108
uses: actions/upload-artifact@v3
109109
with:
110-
path: unit_tests_report_${{ matrix.arch }}.txt
110+
path: unit_tests_report_${{ matrix.arch }}.*
111111

112112
upload-native-binary:
113113
runs-on: ubuntu-latest
@@ -130,8 +130,8 @@ jobs:
130130
automatic_release_tag: build_${{ github.run_number }}
131131
title: "Build ${{ github.run_number }}"
132132
files: |
133-
./artifact/unit_tests_report_amd64.txt
134-
./artifact/unit_tests_report_arm64.txt
133+
./artifact/unit_tests_report_amd64.*
134+
./artifact/unit_tests_report_arm64.*
135135
./artifact/code-coverage.tar.gz
136136
./artifact/self-update-agent-amd64-build-${{ github.run_number }}.tar.gz
137137
./artifact/self-update-agent-arm64-build-${{ github.run_number }}.tar.gz

0 commit comments

Comments
 (0)