Skip to content

Commit

Permalink
Add CI configuration for running unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Nov 6, 2023
1 parent e397c0f commit e113f30
Show file tree
Hide file tree
Showing 4 changed files with 433 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@ jobs:
run: |
set -o pipefail && xcodebuild test \
-scheme "DuckDuckGo" \
-configuration "CI" \
-destination "platform=iOS Simulator,name=iPhone 15,OS=17.0" \
-derivedDataPath "DerivedData" \
DDG_SLOW_COMPILE_CHECK_THRESHOLD=250 \
| tee xcodebuild.log \
| xcbeautify --report junit --report-path . --junit-report-filename unittests.xml
-derivedDataPath "DerivedData"
# DDG_SLOW_COMPILE_CHECK_THRESHOLD=250
# | tee xcodebuild.log \
# | xcbeautify --report junit --report-path . --junit-report-filename unittests.xml
- name: Upload logs if workflow failed
uses: actions/upload-artifact@v3
Expand Down
6 changes: 6 additions & 0 deletions Configuration/Configuration.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@

DDG_SLOW_COMPILE_CHECK_THRESHOLD = 100
OTHER_SWIFT_FLAGS[config=Debug][arch=*][sdk=*] = $(inherited) -Xfrontend -warn-long-expression-type-checking=$(DDG_SLOW_COMPILE_CHECK_THRESHOLD) -Xfrontend -warn-long-function-bodies=$(DDG_SLOW_COMPILE_CHECK_THRESHOLD)

CODE_SIGN_ENTITLEMENTS[config=CI][arch=*][sdk=*] = DuckDuckGo/DuckDuckGoCI.entitlements
CODE_SIGN_IDENTITY[config=CI][sdk=*] =
CODE_SIGN_STYLE[config=CI][sdk=*] = Automatic

PROVISIONING_PROFILE_SPECIFIER[config=CI][sdk=*] =
Loading

0 comments on commit e113f30

Please sign in to comment.