Skip to content

Commit

Permalink
Rerun tests with logging on failure (#571)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
Co-authored-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan-Jowett and Alan Jowett authored Oct 16, 2024
1 parent 9382b34 commit 4702bb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ jobs:
--build build \
--target test
- name: Rerun failed tests with more verbose output
if: inputs.platform == 'ubuntu-latest' && failure()
working-directory: ${{github.workspace}}/build
run: |
ctest --rerun-failed --output-on-failure
- name: Generate code coverage report
if: inputs.enable_coverage == true && inputs.platform == 'macos-latest'
run: |
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ jobs:

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
submodules: 'recursive'

Expand Down Expand Up @@ -78,6 +78,12 @@ jobs:
cd build
ctest --output-on-failure --build-config ${{ inputs.build_type }}
- name: Rerun failed tests with more verbose output
if: inputs.platform == 'ubuntu-latest' && failure()
working-directory: ${{github.workspace}}/build
run: |
ctest --rerun-failed --output-on-failure
- name: Generate the TGZ package
run: |
cmake `
Expand Down

0 comments on commit 4702bb6

Please sign in to comment.