mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 02:51:21 +00:00
ci: fix by specified test to run
This commit is contained in:
parent
b5b08aba16
commit
09bf642a9f
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
- name: Try to test the project
|
- name: Try to test the project
|
||||||
id: failed-step
|
id: failed-step
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: ctest --test-dir build --output-on-failure --no-tests=error
|
run: ctest --test-dir build --output-on-failure --no-tests=error -R hello_world
|
||||||
|
|
||||||
- name: Check on success
|
- name: Check on success
|
||||||
if: steps.failed-step.outcome == 'success'
|
if: steps.failed-step.outcome == 'success'
|
||||||
@ -33,7 +33,7 @@ jobs:
|
|||||||
- name: Build and test the project
|
- name: Build and test the project
|
||||||
run: |
|
run: |
|
||||||
cmake --build build
|
cmake --build build
|
||||||
ctest --test-dir build --output-on-failure --no-tests=error
|
ctest --test-dir build --output-on-failure --no-tests=error -R hello_world
|
||||||
|
|
||||||
specified-dir-usage:
|
specified-dir-usage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -54,7 +54,7 @@ jobs:
|
|||||||
- name: Build and test the project
|
- name: Build and test the project
|
||||||
run: |
|
run: |
|
||||||
cmake --build output
|
cmake --build output
|
||||||
ctest --test-dir output --output-on-failure --no-tests=error
|
ctest --test-dir output --output-on-failure --no-tests=error -R hello_world
|
||||||
|
|
||||||
run-build-usage:
|
run-build-usage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -67,9 +67,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
source-dir: test
|
source-dir: test
|
||||||
run-build: true
|
run-build: true
|
||||||
|
build-args: --target test_c --target test_cpp
|
||||||
|
|
||||||
- name: Test the project
|
- name: Test the project
|
||||||
run: ctest --test-dir build --output-on-failure --no-tests=error
|
run: ctest --test-dir test/build --output-on-failure --no-tests=error -R test
|
||||||
|
|
||||||
run-test-usage:
|
run-test-usage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -83,6 +84,7 @@ jobs:
|
|||||||
source-dir: test
|
source-dir: test
|
||||||
run-build: true
|
run-build: true
|
||||||
run-test: true
|
run-test: true
|
||||||
|
test-args: -R hello_world
|
||||||
|
|
||||||
additional-flags-usage:
|
additional-flags-usage:
|
||||||
runs-on: ${{ matrix.compiler == 'msvc' && 'windows' || 'ubuntu' }}-latest
|
runs-on: ${{ matrix.compiler == 'msvc' && 'windows' || 'ubuntu' }}-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user