Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-01-03 14:07:21 +0100
committerMartin Hořeňovský2026-01-03 14:07:25 +0100
commitb81ef2aa2e76a432f2082d1788ea2e7304bfbecf (patch)
treea569d8f3df6e7b37dc68698eb0fac65487c91e00
parentec4dcbf9cb6d85f410a08c02c1b2cce2b2101b64 (diff)
downloadcatch3-b81ef2aa2e76a432f2082d1788ea2e7304bfbecf.tar.gz
Add OUTPUT_ON_FAILURE and NO_TESTS_ACTIONS=error to CTest GHA actions
-rw-r--r--.github/workflows/linux-bazel-builds.yml4
-rw-r--r--.github/workflows/linux-meson-builds.yml4
-rw-r--r--.github/workflows/linux-other-builds.yml6
-rw-r--r--.github/workflows/linux-simple-builds.yml6
-rw-r--r--.github/workflows/mac-builds.yml6
-rw-r--r--.github/workflows/windows-simple-builds.yml6
6 files changed, 28 insertions, 4 deletions
diff --git a/.github/workflows/linux-bazel-builds.yml b/.github/workflows/linux-bazel-builds.yml
index 92a1c5ba..4c9ca2fd 100644
--- a/.github/workflows/linux-bazel-builds.yml
+++ b/.github/workflows/linux-bazel-builds.yml
@@ -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>
diff --git a/.github/workflows/linux-meson-builds.yml b/.github/workflows/linux-meson-builds.yml
index e48dea9d..d0060eb4 100644
--- a/.github/workflows/linux-meson-builds.yml
+++ b/.github/workflows/linux-meson-builds.yml
@@ -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}}
diff --git a/.github/workflows/linux-other-builds.yml b/.github/workflows/linux-other-builds.yml
index 6095f24b..ddd77ddd 100644
--- a/.github/workflows/linux-other-builds.yml
+++ b/.github/workflows/linux-other-builds.yml
@@ -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
diff --git a/.github/workflows/linux-simple-builds.yml b/.github/workflows/linux-simple-builds.yml
index 15db5cf7..701fc271 100644
--- a/.github/workflows/linux-simple-builds.yml
+++ b/.github/workflows/linux-simple-builds.yml
@@ -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
diff --git a/.github/workflows/mac-builds.yml b/.github/workflows/mac-builds.yml
index c9a0dad7..a22217a2 100644
--- a/.github/workflows/mac-builds.yml
+++ b/.github/workflows/mac-builds.yml
@@ -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
diff --git a/.github/workflows/windows-simple-builds.yml b/.github/workflows/windows-simple-builds.yml
index e6d852b6..6105f01d 100644
--- a/.github/workflows/windows-simple-builds.yml
+++ b/.github/workflows/windows-simple-builds.yml
@@ -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