Skip to content

Commit

Permalink
Merge pull request #3290 from eseiler/infra/ctest
Browse files Browse the repository at this point in the history
[INFRA] Fail CI if ctest finds no tests
  • Loading branch information
eseiler authored Oct 10, 2024
2 parents d4a7c88 + bc914fe commit 8ffc9ba
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
- name: Run tests
working-directory: build
run: ctest . -j --output-on-failure
run: ctest . -j --output-on-failure --no-tests=error

- name: Generate coverage report
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Run tests
working-directory: build
run: ctest . -j --output-on-failure
run: ctest . -j --output-on-failure --no-tests=error

- name: Deploy Preview
if: github.event_name == 'pull_request_target'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ jobs:
- name: Run tests
working-directory: build
run: ctest . -j --output-on-failure
run: ctest . -j --output-on-failure --no-tests=error

2 changes: 1 addition & 1 deletion .github/workflows/ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ jobs:
- name: Run tests
working-directory: build
run: ctest . -j --output-on-failure
run: ctest . -j --output-on-failure --no-tests=error
2 changes: 1 addition & 1 deletion .github/workflows/ci_misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ jobs:
- name: Run tests
working-directory: build
run: ctest . -j${{ matrix.build == 'snippet' && '1' || '' }} --output-on-failure
run: ctest . -j${{ matrix.build == 'snippet' && '1' || '' }} --output-on-failure --no-tests=error

0 comments on commit 8ffc9ba

Please sign in to comment.