Skip to content

Commit 712cc12

Browse files
Add unit tests report to build artifacts
1 parent 200de24 commit 712cc12

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: .github/actions/build-native-binary/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ runs:
8989
if: ${{ inputs.arch=='amd64' }}
9090
run: |
9191
cd dist_${{ inputs.arch }}_testing/utest
92-
./TestSelfUpdateAgent
92+
./TestSelfUpdateAgent > ../../unit_tests_report.txt
9393
mkdir report
9494
gcovr --root ../.. --html --html-details --output report/coverage.html -e ../../3rdparty -e ../../utest -e ../../src/main.cpp
9595
tar -czvf ../../code-coverage.tar.gz report

Diff for: .github/workflows/main.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ jobs:
102102
with:
103103
path: code-coverage.tar.gz
104104

105+
- name: Upload unit tests results to workspace
106+
if: ${{ matrix.arch == 'amd64' }}
107+
uses: actions/upload-artifact@v3
108+
with:
109+
path: unit_tests_report.txt
110+
105111
upload-native-binary:
106112
runs-on: ubuntu-latest
107113
needs: build-native-binary
@@ -123,6 +129,7 @@ jobs:
123129
automatic_release_tag: build_${{ github.run_number }}
124130
title: "Build ${{ github.run_number }}"
125131
files: |
132+
./artifact/unit_tests_report.txt
126133
./artifact/code-coverage.tar.gz
127134
./artifact/self-update-agent-amd64-build-${{ github.run_number }}.tar.gz
128135
./artifact/self-update-agent-arm64-build-${{ github.run_number }}.tar.gz

0 commit comments

Comments
 (0)