Skip to content

Commit

Permalink
(DOCSP-35186): C++: Break out test suite workflows (#3145)
Browse files Browse the repository at this point in the history
## Pull Request Info

Jira ticket: https://jira.mongodb.org/browse/DOCSP-35298

There is no good reason the Sync tests shouldn't run in the existing
workflow. When I run the Sync tests by themselves, they work. So I guess
I'll break them out into separate workflows, which will speed them up,
anyway, so they can run in parallel instead of serially.

Presumably this will also resolve the failing Sync tests, since they
worked fine in #3142 when I broke them out separately.

### Review Guidelines


[REVIEWING.md](https://github.com/mongodb/docs-realm/blob/master/REVIEWING.md)
  • Loading branch information
dacharyc committed Jan 5, 2024
1 parent 81c5f2a commit 3fdf978
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 47 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/c++.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/c++_asymmetric.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: C++ Asymmetric Sync Example Tests

on:
pull_request:
paths:
- "examples/cpp/asymmetric/**"

jobs:
tests:
runs-on: macOS-12

steps:
- uses: actions/checkout@v3
- name: Build
run: |
cd examples/cpp/asymmetric
mkdir build && cd build
cmake ..
cmake --build .
- name: Test
run: |
cd examples/cpp/asymmetric/build
./examples-asymmetric
23 changes: 23 additions & 0 deletions .github/workflows/c++_local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: C++ Local Example Tests

on:
pull_request:
paths:
- "examples/cpp/local/**"

jobs:
tests:
runs-on: macOS-12

steps:
- uses: actions/checkout@v3
- name: Build
run: |
cd examples/cpp/local
mkdir build && cd build
cmake ..
cmake --build .
- name: Test
run: |
cd examples/cpp/local/build
./examples-local
23 changes: 23 additions & 0 deletions .github/workflows/c++_sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: C++ Sync Example Tests

on:
pull_request:
paths:
- "examples/cpp/sync/**"

jobs:
tests:
runs-on: macOS-12

steps:
- uses: actions/checkout@v3
- name: Build
run: |
cd examples/cpp/sync
mkdir build && cd build
cmake ..
cmake --build .
- name: Test
run: |
cd examples/cpp/sync/build
./examples-sync

0 comments on commit 3fdf978

Please sign in to comment.