Skip to content

Commit

Permalink
Merge pull request #18 from m-tmatma/feature/xml-output
Browse files Browse the repository at this point in the history
xml output
  • Loading branch information
m-tmatma committed Apr 13, 2024
2 parents 679cf92 + 015c994 commit ee120a6
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ name: CMake

on:
push:
branches:
branches:
- master
- feature/*
pull_request:
branches:
branches:
- master
- feature/*

permissions:
checks: write
pull-requests: write

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
Expand Down Expand Up @@ -47,7 +51,28 @@ jobs:
run: ctest -C ${{env.BUILD_TYPE}} --verbose

- name: Test
working-directory: ${{github.workspace}}/build
if: matrix.os == 'ubuntu-latest'
run: |
mkdir -p output
find ${{github.workspace}}/build/bin/ -type f -and -executable | xargs -I {} sh -c 'echo "Running {}"; {} --gtest_output=xml:output/'
- name: Show Output
working-directory: ${{github.workspace}}/build
run: find ${{github.workspace}}/build/bin/ -type f -and -executable | xargs -n 1 sh -c

if: matrix.os == 'ubuntu-latest'
run: |
find output
- name: Upload Test Results
uses: actions/upload-artifact@v2
with:
name: test-results
path: ${{github.workspace}}/build/output

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
if: matrix.os == 'ubuntu-latest'
#if: runner.os == 'Linux'
with:
files: |
${{github.workspace}}/build/output/*.xml

0 comments on commit ee120a6

Please sign in to comment.