Add .github/workflows/test.yml #1
Workflow file for this run
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: Test | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| types: [ready_for_review, opened, synchronize, reopened] | |
| push: | |
| # branches: | |
| # - main | |
| jobs: | |
| test: | |
| name: Run Unit Tests | |
| runs-on: [self-hosted, macOS, tahoe, xcode-26.1.1] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Select Xcode version | |
| run: sudo xcodes select 26.1.1 | |
| - name: Build and Test | |
| run: | | |
| cmd="xcodebuild test -scheme Cilicon -project Cilicon.xcodeproj -destination 'platform=macOS'" | |
| if xcbeautify --version > /dev/null 2>&1; then | |
| cmd="$cmd | xcbeautify" | |
| fi | |
| eval "$cmd" |