Frameworks for 5.2.18 #31
This file contains hidden or 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
name: XCUITest | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
xcuitest: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Select Xcode Version | |
run: sudo xcode-select -s /Applications/Xcode_16.1.app | |
- name: Install dependencies (if needed) | |
run: cd pod_example && pod install # or `swift package resolve` if using SPM | |
- name: Create .env file | |
run: | | |
echo "OPACITY_API_KEY=${{ secrets.OPACITY_API_KEY }}" > pod_example/Opacity/.env | |
env: | |
OPACITY_API_KEY: ${{ secrets.OPACITY_API_KEY }} | |
- name: Run UI Tests | |
run: | | |
xcodebuild test \ | |
-workspace pod_example/OpacityPod.xcworkspace \ | |
-destination 'platform=iOS Simulator,name=iPhone 16' \ | |
-scheme OpacityPod_Example \ | |
-only-testing:OpacityPod_UITests |