Skip to content

Commit

Permalink
Added tests result in JUNIT format to build artifacts (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrChaika authored Aug 2, 2023
1 parent a4382ff commit fcb7ff5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-native-binary/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ runs:
if: ${{ inputs.arch == 'amd64' }}
run: |
cd dist_${{ inputs.arch }}/utest
./TestSelfUpdateAgent > ../../unit_tests_report_${{ inputs.arch }}.txt
./TestSelfUpdateAgent > ../../unit_tests_report_${{ inputs.arch }}.txt --gtest_output=xml:../../unit_tests_report_${{ inputs.arch }}.xml
shell: bash

- uses: uraimo/run-on-arch-action@v2
Expand All @@ -157,7 +157,7 @@ runs:
echo "\nextra/selfupdateagent.crt" | tee -a /etc/ca-certificates.conf > /dev/null
update-ca-certificates
cd /sua/dist_arm64/utest
LD_LIBRARY_PATH=../lib ./TestSelfUpdateAgent > ../../unit_tests_report_arm64.txt
LD_LIBRARY_PATH=../lib ./TestSelfUpdateAgent > ../../unit_tests_report_arm64.txt --gtest_output=xml:../../unit_tests_report_arm64.xml
- name: Collect code-coverage for amd64
if: ${{ inputs.arch == 'amd64' }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Upload unit tests results to workspace
uses: actions/upload-artifact@v3
with:
path: unit_tests_report_${{ matrix.arch }}.txt
path: unit_tests_report_${{ matrix.arch }}.*

upload-native-binary:
runs-on: ubuntu-latest
Expand All @@ -130,8 +130,8 @@ jobs:
automatic_release_tag: build_${{ github.run_number }}
title: "Build ${{ github.run_number }}"
files: |
./artifact/unit_tests_report_amd64.txt
./artifact/unit_tests_report_arm64.txt
./artifact/unit_tests_report_amd64.*
./artifact/unit_tests_report_arm64.*
./artifact/code-coverage.tar.gz
./artifact/self-update-agent-amd64-build-${{ github.run_number }}.tar.gz
./artifact/self-update-agent-arm64-build-${{ github.run_number }}.tar.gz

0 comments on commit fcb7ff5

Please sign in to comment.