Update peter-evans/create-pull-request action to v8 #107
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: Unit Tests | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| jobs: | |
| tests: | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: n1hility/cancel-previous-runs@v3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Select latest Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '16.1' | |
| - name: 🧪 Run Unit Tests | |
| run: | | |
| xcodebuild test \ | |
| -project "AdyenNetworking.xcodeproj" \ | |
| -scheme "UnitTests" \ | |
| -testPlan "UnitTests" \ | |
| -enableCodeCoverage YES \ | |
| -resultBundlePath "UnitTests.xcresult" \ | |
| -destination "name=iPhone 16 Pro,OS=18.1" | xcpretty --utf --color && exit ${PIPESTATUS[0]} |