-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 919 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Test
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
test-action:
name: Test Action
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-14, windows-2022]
steps:
- name: Checkout Project
uses: actions/checkout@v4.2.2
with:
repository: threeal/cpp-starter
ref: v1.0.0
- name: Checkout Action
uses: actions/checkout@v4.2.2
with:
path: ctest-action
sparse-checkout: |
dist
action.yml
sparse-checkout-cone-mode: false
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@v5
- name: Build Project
uses: threeal/cmake-action@v2.0.0
with:
generator: Ninja
options: BUILD_TESTING=ON
- name: Test Project
uses: ./ctest-action