From a51e09f2549bf6ffc7b797cac2cc7e372b29c41f Mon Sep 17 00:00:00 2001 From: Andrew Mayers Date: Thu, 14 May 2026 15:16:56 -0400 Subject: [PATCH 1/2] Improved CI --- .github/workflows/ci.yml | 47 ++++++++++++++++++++++++++++++++-------- 1 file changed, 38 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9904a5..0f00a3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,26 +14,55 @@ jobs: runs-on: macos-26 steps: - name: Checkout - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Select Xcode 26.5 (stable) id: xcode-stable continue-on-error: true - uses: maxim-lobanov/setup-xcode@v1 + uses: maxim-lobanov/setup-xcode@v1.7.0 with: xcode-version: "^26.5" - name: Select Xcode 26.5 (beta fallback) if: steps.xcode-stable.outcome != 'success' - uses: maxim-lobanov/setup-xcode@v1 + uses: maxim-lobanov/setup-xcode@v1.7.0 with: xcode-version: "^26.5-beta" - - name: Swift version - run: swift --version - - - name: Test + - name: Build & Test + env: + NSUnbufferedIO: YES run: | - xcodebuild test \ + set -o pipefail + xcodebuild \ -scheme AnalyticsKit \ - -destination "platform=iOS Simulator,name=iPhone 17 Pro" + -destination "platform=iOS Simulator,name=iPhone 17 Pro" \ + clean build test 2>&1 | \ + tee build.log | \ + xcbeautify --renderer github-actions --report junit --report-path . --junit-report-filename test-results.xml + + - name: Print raw build log on failure + if: failure() + run: cat build.log 2>/dev/null || true + + - name: Verify test results exist + if: (!cancelled()) + run: | + if [ ! -f test-results.xml ]; then + echo "Error: test-results.xml was not generated" + exit 1 + fi + + - name: Publish Test Report + uses: mikepenz/action-junit-report@v6.4.0 + if: (!cancelled()) + with: + report_paths: 'test-results.xml' + require_tests: true + fail_on_failure: true + fail_on_parse_error: true + comment: true + check_name: 'Test Results' + flaky_summary: true + updateComment: true + From 2ecc07a87e60b95436c309bfeb101732d2def951 Mon Sep 17 00:00:00 2001 From: Andrew Mayers Date: Thu, 14 May 2026 15:19:26 -0400 Subject: [PATCH 2/2] Xcode 26.4 --- .github/workflows/ci.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f00a3a..580a710 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,18 +16,11 @@ jobs: - name: Checkout uses: actions/checkout@v6 - - name: Select Xcode 26.5 (stable) + - name: Select Xcode 26.4 id: xcode-stable - continue-on-error: true uses: maxim-lobanov/setup-xcode@v1.7.0 with: - xcode-version: "^26.5" - - - name: Select Xcode 26.5 (beta fallback) - if: steps.xcode-stable.outcome != 'success' - uses: maxim-lobanov/setup-xcode@v1.7.0 - with: - xcode-version: "^26.5-beta" + xcode-version: "^26.4" - name: Build & Test env: