-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(POM-443): migrate to swift testing (#403)
* Migrate test targets to use Swift Testing. * Remove unused test target from example app.
- Loading branch information
1 parent
5445804
commit a28139b
Showing
40 changed files
with
1,047 additions
and
1,072 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,15 +11,22 @@ concurrency: | |
cancel-in-progress: true | ||
jobs: | ||
run-tests: | ||
strategy: | ||
matrix: | ||
os: [macos-14, macos-15] | ||
runs-on: ${{ matrix.os }} | ||
runs-on: macos-15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Bootstrap Project | ||
uses: ./.github/actions/bootstrap-project | ||
with: | ||
test-project-constants: ${{ secrets.TEST_PROJECT_CONSTANTS }} | ||
- name: Run Unit Tests | ||
run: source Scripts/Test.sh | ||
run: source Scripts/Tests/Run.sh | ||
run-tests-legacy: | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Bootstrap Project | ||
uses: ./.github/actions/bootstrap-project | ||
with: | ||
test-project-constants: ${{ secrets.TEST_PROJECT_CONSTANTS }} | ||
- name: Run Unit Tests | ||
run: source Scripts/Tests/[email protected] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Note: Test targets are not compatible with Xcode 15. | ||
# This script ensures that the project can be built successfully as a minimal validation check. | ||
|
||
set -euo pipefail | ||
|
||
PROJECT='ProcessOut.xcodeproj' | ||
DESTINATION=$(./Scripts/Tests/Destination.swift) | ||
|
||
# Iterate over each product and build it using xcodebuild | ||
for PRODUCT in "ProcessOut" "ProcessOutUI" "ProcessOutCheckout3DS"; do | ||
xcodebuild clean build \ | ||
-destination "$DESTINATION" \ | ||
-project $PROJECT \ | ||
-scheme $PRODUCT | | ||
xcpretty | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.