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

Audit Test Workflow #24

Merged
merged 3 commits into from
Mar 20, 2024
Merged
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
23 changes: 15 additions & 8 deletions .github/workflows/test.yml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,36 @@
name: test
name: Test
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
default-usage:
test-action:
name: Test Action
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [windows, ubuntu, macos]
steps:
- name: Checkout the repository
- name: Checkout
uses: actions/checkout@v4.1.2
with:
path: ctest-action
sparse-checkout: |
test
action.yaml
sparse-checkout-cone-mode: false

- name: Move the test project to the working directory
run: mv test/* .
- name: Prepare Sample Project
run: mv ctest-action/test/* .

- name: Configure and build the project
- name: Configure and Build Project
uses: threeal/cmake-action@v1.3.0
with:
run-build: true

- name: Use the action
uses: ./
- name: Test Project
uses: ./ctest-action
with:
args: ${{ matrix.os == 'windows' && '-C Debug' || '' }}