Skip to content

Commit 1aa6073

Browse files
authored
chore: run cpp tests on CI (#443)
# Summary Creates CI workflow which verifies if cpp tests are passing. It runs only when something changes inside `cpp` directory. ## Test Plan See results of https://github.com/software-mansion/react-native-enriched/actions/runs/22477961956 ## Screenshots / Videos n/a ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | Android | ✅ |
1 parent c13d5c9 commit 1aa6073

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/test-cpp.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test C++
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'cpp/**'
9+
pull_request:
10+
branches:
11+
- main
12+
paths:
13+
- 'cpp/**'
14+
merge_group:
15+
types:
16+
- checks_requested
17+
18+
jobs:
19+
test-cpp:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Configure CMake
26+
run: cmake -S cpp -B cpp/build -DCMAKE_BUILD_TYPE=Release
27+
28+
- name: Build
29+
run: cmake --build cpp/build --parallel
30+
31+
- name: Run tests
32+
run: ctest --test-dir cpp/build --output-on-failure

0 commit comments

Comments
 (0)