fix: update run-tests action to use CTest presets for consistency
This commit is contained in:
16
.github/actions/run-tests/action.yml
vendored
16
.github/actions/run-tests/action.yml
vendored
@@ -5,9 +5,9 @@ inputs:
|
|||||||
description: 'Type of tests to run (stable, unit, integration, all)'
|
description: 'Type of tests to run (stable, unit, integration, all)'
|
||||||
required: true
|
required: true
|
||||||
preset:
|
preset:
|
||||||
description: 'CMake preset to use'
|
description: 'CMake preset to use (for reference, tests use minimal preset)'
|
||||||
required: false
|
required: false
|
||||||
default: 'ci'
|
default: 'minimal'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
@@ -17,8 +17,8 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
ctest --output-on-failure -C RelWithDebInfo -j1 \
|
ctest --preset stable \
|
||||||
-L "stable" \
|
--output-on-failure \
|
||||||
--output-junit stable_test_results.xml || true
|
--output-junit stable_test_results.xml || true
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
@@ -26,8 +26,8 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
ctest --output-on-failure -C RelWithDebInfo --parallel \
|
ctest --preset unit \
|
||||||
-L "unit" \
|
--output-on-failure \
|
||||||
--output-junit unit_test_results.xml || true
|
--output-junit unit_test_results.xml || true
|
||||||
|
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
@@ -35,8 +35,8 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
ctest --output-on-failure -C RelWithDebInfo --parallel \
|
ctest --preset integration \
|
||||||
-L "integration" \
|
--output-on-failure \
|
||||||
--output-junit integration_test_results.xml || true
|
--output-junit integration_test_results.xml || true
|
||||||
|
|
||||||
- name: Upload test results
|
- name: Upload test results
|
||||||
|
|||||||
Reference in New Issue
Block a user