Merge pull request #19 from NakaokaRei/codex/add-pr-build-and-tests #19
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: Build and Test | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: build-and-test-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| runs-on: macos-26 | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build app and tests | |
| run: | | |
| xcodebuild build-for-testing \ | |
| -project TrackpadAir.xcodeproj \ | |
| -scheme TrackpadAir \ | |
| -destination 'platform=macOS' \ | |
| -derivedDataPath "$RUNNER_TEMP/DerivedData" \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Run unit tests | |
| run: | | |
| xcodebuild test-without-building \ | |
| -project TrackpadAir.xcodeproj \ | |
| -scheme TrackpadAir \ | |
| -destination 'platform=macOS' \ | |
| -derivedDataPath "$RUNNER_TEMP/DerivedData" \ | |
| -only-testing:TrackpadAirTests \ | |
| CODE_SIGNING_ALLOWED=NO |