Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: isolate recording unit tests in CI

Richie McIlroy6560beb6a175
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6b91ef631..7bbbc8f00 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -282,7 +282,7 @@ jobs:
pnpm --dir apps/desktop exec vitest run scripts/prepare.test.js
cargo test --locked -p cap-utils -p cap-cli-install --lib
cargo test --locked -p cap --bin cap record::tests
- cargo test --locked -p cap-recording --lib
+ cargo test --locked -p cap-recording --lib -- --test-threads=1
cargo test --locked -p cap-enc-ffmpeg
env:
LD_LIBRARY_PATH: ${{ format('{0}/target/native-deps/lib:{0}/target/debug:{0}/target/{1}/debug', github.workspace, matrix.settings.target) }}
diff --git a/.github/workflows/sync-tests.yml b/.github/workflows/sync-tests.yml
index 82bdfbb44..756814056 100644
--- a/.github/workflows/sync-tests.yml
+++ b/.github/workflows/sync-tests.yml
@@ -136,7 +136,7 @@ jobs:
shell: bash
run: |
cargo test --locked -p cap-timestamp -p cap-enc-ffmpeg
- cargo test --locked -p cap-recording --lib
+ cargo test --locked -p cap-recording --lib -- --test-threads=1
# --nocapture so a WARP-adapter notch skip prints instead of
# looking identical to a pass in the CI log.
cargo test --locked -p cap-rendering -- --nocapture