Add touch pad zoom #13
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-test: | |
| name: Build and Test (macOS / Xcode) | |
| runs-on: macos-latest | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: true | |
| - name: Setup Swift 6.2 | |
| uses: swift-actions/setup-swift@v2 | |
| with: | |
| swift-version: '6.2' | |
| - name: Show environment info | |
| run: | | |
| sw_vers | |
| xcodebuild -version | |
| swift --version | |
| - name: SwiftLint | |
| run: | | |
| set -euo pipefail | |
| if ! command -v swiftlint >/dev/null 2>&1; then | |
| echo "SwiftLint is not installed, installing via Homebrew..." | |
| brew install swiftlint | |
| fi | |
| swiftlint version | |
| swiftlint lint --config .swiftlint.yml --reporter github-actions-logging | |
| - name: Build (Debug) | |
| run: | | |
| set -euo pipefail | |
| echo "Building Tenniarb (Debug configuration)..." | |
| xcodebuild -project Tenniarb.xcodeproj -scheme Tenniarb -configuration Debug \ | |
| -derivedDataPath build clean build CODE_SIGNING_ALLOWED=NO | tee xcodebuild.log | |
| # Let a failing build fail the job; logs are captured for post-mortem. | |
| - name: Run tests | |
| run: | | |
| set -euo pipefail | |
| echo "Running tests..." | |
| # Disable code signing and related settings so tests can run on hosted runner without certificates | |
| xcodebuild test -project Tenniarb.xcodeproj -scheme Tenniarb \ | |
| -destination 'platform=macOS' -configuration Debug -derivedDataPath build \ | |
| CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY="" DEVELOPMENT_TEAM="" | tee xcodebuild-test.log | |
| - name: Upload build & test logs | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: xcodebuild-logs | |
| path: | | |
| xcodebuild.log | |
| xcodebuild-test.log |