Skip to content

Fastest and only macOS Dictation app with on-device STT and custom trained AI enhancement model. Windows, iOS testflight! Android, Linux waitlist open! A local Wispr Flow alternative. Follow https://x.com/fluidvoiceapp for more

test(onboarding): run standalone setup and policy suites in CI

altic-devecd8c98b2177
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 7fad6a9f..2e00627d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -88,6 +88,9 @@ jobs:
- name: Show Xcode version
run: xcodebuild -version
+ - name: Run standalone onboarding regressions
+ run: sh Tests/run_onboarding_tests.sh
+
# Tiny Whisper GGUF output is nondeterministic on hosted macOS runners.
# Keep this E2E assertion in the suite for local validation, but skip it in CI.
- name: Build and test (excluding flaky Tiny Whisper E2E)
diff --git a/Tests/run_onboarding_tests.sh b/Tests/run_onboarding_tests.sh
new file mode 100644
index 00000000..a24fa803
--- /dev/null
+++ b/Tests/run_onboarding_tests.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+set -eu
+cd "$(dirname "$0")/.."
+task_developer_dir="${DEVELOPER_DIR:-$(xcode-select -p)}"
+test -d "$task_developer_dir/Platforms/MacOSX.platform"
+export DEVELOPER_DIR="$task_developer_dir"
+task_test_dir=$(mktemp -d /tmp/fluidvoice-onboarding-tests.XXXXXX)
+trap 'rm -rf "$task_test_dir"' EXIT
+run_case() {
+ task_case_name="$1"
+ shift
+ xcrun swiftc -O -parse-as-library "$@" "Tests/$task_case_name.swift" -o "$task_test_dir/$task_case_name"
+ "$task_test_dir/$task_case_name"
+}
+run_case OnboardingAISetupControllerTests Sources/Fluid/Services/OnboardingAISetupController.swift
+run_case OnboardingPolishPracticeTests Sources/Fluid/Services/OnboardingPolishPractice.swift
+run_case OnboardingDictationOutputPolicyTests Sources/Fluid/Services/OnboardingDictationOutputPolicy.swift
+run_case PrivateAIHardwareRecommendationTests Sources/Fluid/Services/PrivateAIHardwareRecommendation.swift