Skip to content

Commit

Permalink
Don't build SPM dependencies for UI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Sep 26, 2024
1 parent 514b888 commit 4fd54cc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/sync_end_to_end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,15 @@ jobs:
with:
debug: true

# This first bit is a hack to stop the app building package dependencies that isn't needed by the test runner
# Otherwise xcodebuild will attempt building BSK and linking GRDB framework that is incompatible with Xcode 15
- name: Build test runner
run: |
rm -rf LocalPackages
rm -rf /Users/runner/work/macos-browser/macos-browser/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
sed -i '' '/\/\* Begin XCSwiftPackageProductDependency section \*\//,/\/\* End XCSwiftPackageProductDependency section \*\//d' DuckDuckGo.xcodeproj/project.pbxproj
sed -i '' '/\/\* Begin XCRemoteSwiftPackageReference section \*\//,/\/\* End XCRemoteSwiftPackageReference section \*\//d' DuckDuckGo.xcodeproj/project.pbxproj
- name: Build Sync e2e tests
run: |
set -o pipefail && xcodebuild build-for-testing \
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/ui_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ jobs:
echo "${{ matrix.xcode-version }}" > .xcode-version
sudo xcode-select -s /Applications/Xcode_$(<.xcode-version).app/Contents/Developer
# This first bit is a hack to stop the app building package dependencies that isn't needed by the test runner
# Otherwise xcodebuild will attempt building BSK and linking GRDB framework that is incompatible with Xcode 15
- name: Build test runner
run: |
rm -rf LocalPackages
rm -rf /Users/runner/work/macos-browser/macos-browser/DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
sed -i '' '/\/\* Begin XCSwiftPackageProductDependency section \*\//,/\/\* End XCSwiftPackageProductDependency section \*\//d' DuckDuckGo.xcodeproj/project.pbxproj
sed -i '' '/\/\* Begin XCRemoteSwiftPackageReference section \*\//,/\/\* End XCRemoteSwiftPackageReference section \*\//d' DuckDuckGo.xcodeproj/project.pbxproj
- name: Build for testing
run: |
set -o pipefail && xcodebuild build-for-testing \
Expand Down

0 comments on commit 4fd54cc

Please sign in to comment.