Skip to content

Commit

Permalink
added gha test reports (6)
Browse files Browse the repository at this point in the history
  • Loading branch information
arBmind committed Feb 19, 2023
1 parent 3650ec0 commit 0b721e6
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/cmake_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,30 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Setup CMake & Ninja
uses: lukka/get-cmake@latest

- name: Install Tools Ninja and mvsc
uses: ilammy/msvc-dev-cmd@v1

- uses: seanmiddleditch/gha-setup-ninja@master

- name: Build and Test Debug
env:
GTEST_OUTPUT: xml:${{ github.workspace }}\reports\debug\
run: script/test_cmake.bat ${{ matrix.preset }} debug

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

- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: ${{ matrix.os }} Tests
path: reports/**/*.xml
reporter: java-junit

linux:
name: "Linux"
runs-on: ubuntu-latest
Expand All @@ -58,11 +71,24 @@ jobs:
- name: Build and Test Debug
run: >-
docker run --rm -v ${GITHUB_WORKSPACE}:/project -w /project
--env GTEST_OUTPUT=xml:/project/reports/debug/
${{ matrix.image }}
script/test_cmake.sh ${{ matrix.preset }} debug
- name: Build and Test Release
run: >-
docker run --rm -v ${GITHUB_WORKSPACE}:/project -w /project
--env GTEST_OUTPUT=xml:/project/reports/release/
${{ matrix.image }}
script/test_cmake.sh ${{ matrix.preset }} release
- run: >-
ls -la reports/*
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: ${{ matrix.image }} Tests
path: reports/**/*.xml
reporter: java-junit
19 changes: 19 additions & 0 deletions .github/workflows/qbs_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,21 @@ jobs:
- name: Build and run Tests
run: >-
docker run --rm -v ${GITHUB_WORKSPACE}:/project -w /project
--env GTEST_OUTPUT=xml:/project/reports/qbs/
${{ matrix.image }}
build
--build-directory /tmp/build
${{ matrix.build_args }}
-p autotest-runner
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: ${{ matrix.image }} Tests
path: reports/**/*.xml
reporter: java-junit

windows:
name: "Windows"
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -66,7 +75,17 @@ jobs:
shell: bash

- name: Build and run Tests
env:
GTEST_OUTPUT: xml:${{ github.workspace }}\reports\msvc\
run: >-
qbs build profile:msvc
--build-directory ${env:RUNNER_TEMP}\build
-p autotest-runner
- name: Test Report
uses: dorny/test-reporter@v1
if: success() || failure()
with:
name: ${{ matrix.os }} Tests
path: reports/**/*.xml
reporter: java-junit

0 comments on commit 0b721e6

Please sign in to comment.