feat: Get ready for v1.0.0 #1
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: iOS Tests | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Build and Test on iOS | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Select Xcode version | |
| run: sudo xcode-select -s /Applications/Xcode_16.4.app | |
| - name: Show Xcode version | |
| run: xcodebuild -version | |
| - name: Show available simulators | |
| run: xcrun simctl list devices | |
| - name: Build Swift Package | |
| run: swift build | |
| - name: Run iOS Tests with StoreKit Configuration | |
| run: | | |
| xcodebuild test \ | |
| -scheme Mercato \ | |
| -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.5' \ | |
| -configuration Debug \ | |
| -enableCodeCoverage YES \ | |
| | xcpretty --test --color | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v3 | |
| if: failure() | |
| with: | |
| name: test-results | |
| path: | | |
| ~/Library/Developer/Xcode/DerivedData/*/Logs/Test/*.xcresult |