2
0
mirror of https://github.com/catchorg/Catch2 synced 2026-01-19 04:52:08 +00:00

Add OUTPUT_ON_FAILURE and NO_TESTS_ACTIONS=error to CTest GHA actions

This commit is contained in:
Martin Hořeňovský
2026-01-03 14:07:21 +01:00
parent ec4dcbf9cb
commit b81ef2aa2e
6 changed files with 28 additions and 4 deletions

View File

@@ -2,6 +2,10 @@ name: Linux Builds (Bazel)
on: [push, pull_request]
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_NO_TESTS_ACTION: error
jobs:
build_and_test_ubuntu:
name: Linux Ubuntu 22.04 Bazel build <GCC 11.2.0>

View File

@@ -2,6 +2,10 @@ name: Linux Builds (Meson)
on: [push, pull_request]
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_NO_TESTS_ACTION: error
jobs:
build:
name: meson ${{matrix.cxx}}, C++${{matrix.std}}, ${{matrix.build_type}}

View File

@@ -5,6 +5,10 @@ name: Linux Builds (Complex)
on: [push, pull_request]
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_NO_TESTS_ACTION: error
jobs:
build:
name: ${{matrix.build_description}}, ${{matrix.cxx}}, C++${{matrix.std}} ${{matrix.build_type}}
@@ -90,7 +94,7 @@ jobs:
run: cmake --build build
- name: Test
run: ctest --test-dir build -j --output-on-failure
run: ctest --test-dir build -j
clang-tidy:
name: clang-tidy

View File

@@ -2,6 +2,10 @@ name: Linux Builds (Basic)
on: [push, pull_request]
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_NO_TESTS_ACTION: error
jobs:
build:
name: ${{matrix.cxx}}, C++${{matrix.std}}, ${{matrix.build_type}}
@@ -102,4 +106,4 @@ jobs:
run: cmake --build build
- name: Test
run: ctest --test-dir build -j --output-on-failure
run: ctest --test-dir build -j

View File

@@ -2,6 +2,10 @@ name: Mac Builds
on: [push, pull_request]
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_NO_TESTS_ACTION: error
jobs:
build:
runs-on: ${{matrix.image}}
@@ -27,4 +31,4 @@ jobs:
run: cmake --build build
- name: Test
run: ctest --test-dir build -j --output-on-failure
run: ctest --test-dir build -j

View File

@@ -2,6 +2,10 @@ name: Windows Builds (Basic)
on: [push, pull_request]
env:
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_NO_TESTS_ACTION: error
jobs:
build:
name: ${{matrix.os}}, ${{matrix.std}}, ${{matrix.build_type}}, ${{matrix.platform}}
@@ -27,5 +31,5 @@ jobs:
shell: cmd
- name: Run tests
run: ctest --test-dir build -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS% --output-on-failure
run: ctest --test-dir build -C ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
shell: cmd