Skip to content

Commit bc41987

Browse files
committed
CI: explicitly require to build tests
1 parent 4f1980c commit bc41987

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

.github/workflows/build-macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
export CXX=${{matrix.config.cxx}}
5050
cmake -H${{github.event.repository.name}} -Bbuild \
5151
-DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} \
52+
-DCPPSORT_BUILD_TESTING=ON \
5253
-DCPPSORT_SANITIZE=${{matrix.config.sanitize}} \
5354
-DCPPSORT_BUILD_EXAMPLES=ON
5455

.github/workflows/build-mingw.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
cmake -H${{github.event.repository.name}} -Bbuild `
4141
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} `
4242
-G"MinGW Makefiles" `
43+
-DCPPSORT_BUILD_TESTING=ON `
4344
-DCPPSORT_BUILD_EXAMPLES=ON
4445
4546
- name: Build the test suite

.github/workflows/build-msvc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
-DCMAKE_CONFIGURATION_TYPES=${{matrix.config.build_type}} `
4747
-DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} `
4848
-G"Visual Studio 17 2022" -A x64 ${{matrix.config.build_tools}} `
49+
-DCPPSORT_BUILD_TESTING=ON `
4950
-DCPPSORT_BUILD_EXAMPLES=ON
5051
5152
- name: Build the test suite

.github/workflows/build-ubuntu.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
run: |
6464
cmake -S ${{github.event.repository.name}} -B build \
6565
-DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} \
66+
-DCPPSORT_BUILD_TESTING=ON \
6667
-DCPPSORT_SANITIZE=${{matrix.config.sanitize}} \
6768
-DCPPSORT_USE_VALGRIND=${{matrix.config.valgrind}} \
6869
-DCPPSORT_BUILD_EXAMPLES=ON \
@@ -84,7 +85,7 @@ jobs:
8485
ASAN_OPTIONS: "use_sigaltstack=false"
8586
UBSAN_OPTIONS: "use_sigaltstack=false"
8687
working-directory: ${{runner.workspace}}/build
87-
run: ctest -C ${{matrix.config.build_type}}
88+
run: ctest -C ${{matrix.config.build_type}} --no-tests=error
8889

8990
- name: Run the test suite with Memcheck
9091
if: ${{matrix.config.valgrind == 'ON'}}

.github/workflows/code-coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
run: >
3535
cmake -S ${{github.event.repository.name}} -B build
3636
-DCMAKE_BUILD_TYPE=Debug
37+
-DCPPSORT_BUILD_TESTING=ON
3738
-DCPPSORT_ENABLE_COVERAGE=ON
3839
-DGENINFO_EXTRA_FLAGS="--ignore-errors mismatch,mismatch"
3940
-DLCOV_EXTRA_FLAGS="--ignore-errors unused"

0 commit comments

Comments
 (0)