1717 - ' .github/workflows/test.yml'
1818 - ' project.yml'
1919
20+ env :
21+ WHISPER_VERSION : " 1.8.2"
22+
2023jobs :
2124 test :
2225 name : Unit Tests
3437 xcode-version : latest-stable
3538
3639 - name : Install Tools
37- run : brew install xcodegen xcpretty
40+ run : brew install xcodegen xcbeautify
3841
3942 - name : Generate Xcode Project
4043 run : xcodegen generate
@@ -43,10 +46,10 @@ jobs:
4346 run : |
4447 mkdir -p deps/whisper.cpp
4548 curl -L -o whisper-xcframework.zip \
46- "https://github.com/ggml-org/whisper.cpp/releases/download/v1.8.2 /whisper-v1.8.2 -xcframework.zip"
49+ "https://github.com/ggml-org/whisper.cpp/releases/download/v$WHISPER_VERSION /whisper-v$WHISPER_VERSION -xcframework.zip"
4750 unzip -q whisper-xcframework.zip -d deps/whisper.cpp
4851 rm whisper-xcframework.zip
49- echo "Downloaded whisper.cpp v1.8.2 xcframework"
52+ echo "Downloaded whisper.cpp v$WHISPER_VERSION xcframework"
5053
5154 - name : Run Tests
5255 run : |
@@ -55,16 +58,17 @@ jobs:
5558 -project OpenDictation.xcodeproj \
5659 -scheme OpenDictationTests \
5760 -destination 'platform=macOS' \
61+ -resultBundlePath TestResults.xcresult \
5862 CODE_SIGNING_ALLOWED=NO \
5963 CODE_SIGNING_REQUIRED=NO \
6064 CODE_SIGN_IDENTITY="" \
61- | xcpretty --color --report junit
65+ | xcbeautify --renderer github-actions
6266
6367 - name : Upload Test Results
6468 if : always()
6569 uses : actions/upload-artifact@v4
6670 with :
6771 name : test-results
68- path : build/reports/
72+ path : TestResults.xcresult
6973 if-no-files-found : warn
7074 retention-days : 7
0 commit comments