From 0ad312684ee967dd3035066a4927fc217f11c040 Mon Sep 17 00:00:00 2001 From: Andrew Mayers Date: Thu, 14 May 2026 13:55:03 -0400 Subject: [PATCH] Add GitHub Actions CI workflow for PRs Co-Authored-By: Claude Opus 4.7 --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e9904a5 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + pull_request: + branches: [main] + +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-test: + name: Build & Test + runs-on: macos-26 + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Select Xcode 26.5 (stable) + id: xcode-stable + continue-on-error: true + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: "^26.5" + + - name: Select Xcode 26.5 (beta fallback) + if: steps.xcode-stable.outcome != 'success' + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: "^26.5-beta" + + - name: Swift version + run: swift --version + + - name: Test + run: | + xcodebuild test \ + -scheme AnalyticsKit \ + -destination "platform=iOS Simulator,name=iPhone 17 Pro"