Skip to content

Commit 0b721e6

Browse files
committed
added gha test reports (6)
1 parent 3650ec0 commit 0b721e6

2 files changed

Lines changed: 47 additions & 2 deletions

File tree

.github/workflows/cmake_tests.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,30 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v3
2323

24+
- name: Setup CMake & Ninja
25+
uses: lukka/get-cmake@latest
26+
2427
- name: Install Tools Ninja and mvsc
2528
uses: ilammy/msvc-dev-cmd@v1
2629

27-
- uses: seanmiddleditch/gha-setup-ninja@master
28-
2930
- name: Build and Test Debug
31+
env:
32+
GTEST_OUTPUT: xml:${{ github.workspace }}\reports\debug\
3033
run: script/test_cmake.bat ${{ matrix.preset }} debug
3134

3235
- name: Build and Test Release
36+
env:
37+
GTEST_OUTPUT: xml:${{ github.workspace }}\reports\release\
3338
run: script/test_cmake.bat ${{ matrix.preset }} release
3439

40+
- name: Test Report
41+
uses: dorny/test-reporter@v1
42+
if: success() || failure()
43+
with:
44+
name: ${{ matrix.os }} Tests
45+
path: reports/**/*.xml
46+
reporter: java-junit
47+
3548
linux:
3649
name: "Linux"
3750
runs-on: ubuntu-latest
@@ -58,11 +71,24 @@ jobs:
5871
- name: Build and Test Debug
5972
run: >-
6073
docker run --rm -v ${GITHUB_WORKSPACE}:/project -w /project
74+
--env GTEST_OUTPUT=xml:/project/reports/debug/
6175
${{ matrix.image }}
6276
script/test_cmake.sh ${{ matrix.preset }} debug
6377
6478
- name: Build and Test Release
6579
run: >-
6680
docker run --rm -v ${GITHUB_WORKSPACE}:/project -w /project
81+
--env GTEST_OUTPUT=xml:/project/reports/release/
6782
${{ matrix.image }}
6883
script/test_cmake.sh ${{ matrix.preset }} release
84+
85+
- run: >-
86+
ls -la reports/*
87+
88+
- name: Test Report
89+
uses: dorny/test-reporter@v1
90+
if: success() || failure()
91+
with:
92+
name: ${{ matrix.image }} Tests
93+
path: reports/**/*.xml
94+
reporter: java-junit

.github/workflows/qbs_tests.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,21 @@ jobs:
2828
- name: Build and run Tests
2929
run: >-
3030
docker run --rm -v ${GITHUB_WORKSPACE}:/project -w /project
31+
--env GTEST_OUTPUT=xml:/project/reports/qbs/
3132
${{ matrix.image }}
3233
build
3334
--build-directory /tmp/build
3435
${{ matrix.build_args }}
3536
-p autotest-runner
3637
38+
- name: Test Report
39+
uses: dorny/test-reporter@v1
40+
if: success() || failure()
41+
with:
42+
name: ${{ matrix.image }} Tests
43+
path: reports/**/*.xml
44+
reporter: java-junit
45+
3746
windows:
3847
name: "Windows"
3948
runs-on: ${{ matrix.os }}
@@ -66,7 +75,17 @@ jobs:
6675
shell: bash
6776

6877
- name: Build and run Tests
78+
env:
79+
GTEST_OUTPUT: xml:${{ github.workspace }}\reports\msvc\
6980
run: >-
7081
qbs build profile:msvc
7182
--build-directory ${env:RUNNER_TEMP}\build
7283
-p autotest-runner
84+
85+
- name: Test Report
86+
uses: dorny/test-reporter@v1
87+
if: success() || failure()
88+
with:
89+
name: ${{ matrix.os }} Tests
90+
path: reports/**/*.xml
91+
reporter: java-junit

0 commit comments

Comments
 (0)