Skip to content

Run build and unit tests for pull requests #18

Run build and unit tests for pull requests

Run build and unit tests for pull requests #18

Workflow file for this run

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