Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use External Project for Testing #27

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ jobs:
matrix:
os: [windows, ubuntu, macos]
steps:
- name: Checkout
- name: Checkout Project
uses: actions/checkout@v4.1.2
with:
repository: threeal/cpp-starter

- name: Checkout Action
uses: actions/checkout@v4.1.2
with:
path: ctest-action
Expand All @@ -22,14 +27,12 @@ jobs:
action.yaml
sparse-checkout-cone-mode: false

- name: Prepare Sample Project
run: mv ctest-action/test/* .

- name: Configure and Build Project
uses: threeal/cmake-action@v1.3.0
with:
run-build: true
generator: Ninja
options: BUILD_TESTING=ON
run-build: true

- name: Test Project
uses: ./ctest-action
Expand All @@ -38,7 +41,12 @@ jobs:
name: Test Action With Build Config
runs-on: windows-latest
steps:
- name: Checkout
- name: Checkout Project
uses: actions/checkout@v4.1.2
with:
repository: threeal/cpp-starter

- name: Checkout Action
uses: actions/checkout@v4.1.2
with:
path: ctest-action
Expand All @@ -47,12 +55,10 @@ jobs:
action.yaml
sparse-checkout-cone-mode: false

- name: Prepare Sample Project
run: mv ctest-action/test/* .

- name: Configure and Build Project
uses: threeal/cmake-action@v1.3.0
with:
options: BUILD_TESTING=ON
run-build: true

- name: Test Project
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
.*
!.git*

build/
6 changes: 0 additions & 6 deletions test/CMakeLists.txt

This file was deleted.

3 changes: 0 additions & 3 deletions test/main.cpp

This file was deleted.