Merge pull request #162 from Adyen/adopting-swift-testing #547
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: 🧪 Run Tests | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: macos-15 # Apple Silicon Runner | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: n1hility/cancel-previous-runs@v3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Select latest Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '26.2.0' | |
| - name: Configure Xcode for Macros | |
| run: | | |
| defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES | |
| defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES | |
| - name: 🛠️ Run All Tests | |
| run: | | |
| xcodebuild test -scheme public-api-diff-Package -destination "platform=macOS" -skipPackagePluginValidation | xcpretty --utf --color && exit ${PIPESTATUS[0]} |