From 56a369bd853e5826cfe6569cd8ef5c379027bed6 Mon Sep 17 00:00:00 2001 From: Dilant Date: Sat, 24 Oct 2026 09:56:06 +0800 Subject: [PATCH] ci: enable Recorder and ModOptions tests --- .github/workflows/build.yml | 9 ++++++++- Tests/Recorder/Stubs.cs | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a642dfc..fefaaca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ env: jobs: test: - name: Rust checks + name: Tests runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v7 @@ -42,6 +42,12 @@ jobs: - name: Test capture subscriptions and clocks run: dotnet run --project Tests/Capture/Capture.csproj -c Release + - name: Test recorder orchestration + run: dotnet run --project Tests/Recorder/Recorder.csproj -c Release -- "${{ runner.temp }}/recorder-tests" + + - name: Test mod option rules + run: dotnet run --project Tests/ModOptions/ModOptions.csproj -c Release + - name: Cache Cargo uses: actions/cache@v6 with: @@ -228,6 +234,7 @@ jobs: node scripts/build-qol-mod.mjs --target ${{ matrix.target }} --archive ${{ matrix.artifact }}.zip + --no-tests ${{ needs.prepare-release.outputs.publish != 'true' && '--no-ffmpeg' || '' }} - name: Verify Linux library diff --git a/Tests/Recorder/Stubs.cs b/Tests/Recorder/Stubs.cs index 1f48ffb..c59d6fa 100644 --- a/Tests/Recorder/Stubs.cs +++ b/Tests/Recorder/Stubs.cs @@ -120,6 +120,7 @@ public void CheckpointRecovery() { } } public Task StopAsync(){Stopped=true;return Task.CompletedTask;} } + public static class NativeCaptureBridge { public static bool LastFinalizeMissingSfx; } public static class NativeRecordingFinalizer { public record Job(IReadOnlyList Clips,string Output,string Description,bool PreferVideoCopy); public static List Jobs=[];