From 577009cb945cb860963013ae7a9dc58094e9994f Mon Sep 17 00:00:00 2001 From: Kazuki Nakashima <65545348+lynnswap@users.noreply.github.com> Date: Sat, 21 Nov 2026 13:06:12 +0900 Subject: [PATCH 1/2] Run local DMG integration tests on build changes --- .github/workflows/ci.yml | 15 ----------- .github/workflows/local-dmg.yml | 46 +++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/local-dmg.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb3a7cc2..260add44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -191,21 +191,6 @@ jobs: --pattern 'test_build_review_monitor.py' --verbose - - name: Show Xcode environment - run: | - xcodebuild -version - xcodebuild -showsdks - - - name: Run local build integration test - timeout-minutes: 12 - env: - RUN_LOCAL_BUILD_INTEGRATION: '1' - run: >- - python3 -m unittest discover - --start-directory scripts/tests - --pattern 'test_build_review_monitor.py' - --verbose - - name: Test remote release contracts timeout-minutes: 3 run: | diff --git a/.github/workflows/local-dmg.yml b/.github/workflows/local-dmg.yml new file mode 100644 index 00000000..5f3204b9 --- /dev/null +++ b/.github/workflows/local-dmg.yml @@ -0,0 +1,46 @@ +name: Local DMG + +on: + pull_request: + paths: &build-inputs + - .github/workflows/local-dmg.yml + - Package.swift + - Package.resolved + - Tools/ReviewMonitor/CodexReviewMonitor.xcodeproj/** + - Tools/ReviewMonitor/AppIcon.icon/** + - Tools/ReviewMonitor/CodexReviewMonitor/** + - '!Tools/ReviewMonitor/CodexReviewMonitor/**/*.swift' + - scripts/build_review_monitor.py + - scripts/build_dmg.py + - scripts/release-requirements.txt + - scripts/tests/test_build_review_monitor.py + push: + branches: [main] + paths: *build-inputs + +permissions: + contents: read + +concurrency: + group: local-dmg-${{ github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + integration: + name: Local DMG integration (Xcode 27) + runs-on: xcode-27 + timeout-minutes: 20 + steps: + - name: Check out repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Show Xcode environment + run: xcodebuild -version + + - name: Run local build integration tests + working-directory: scripts/tests + env: + RUN_LOCAL_BUILD_INTEGRATION: '1' + run: python3 -m unittest -v test_build_review_monitor.LocalBuildIntegrationTests From 52d313e0de0d1e42a1c953ff3f2eeaf6d2652b9d Mon Sep 17 00:00:00 2001 From: Kazuki Nakashima <65545348+lynnswap@users.noreply.github.com> Date: Sat, 21 Nov 2026 13:08:09 +0900 Subject: [PATCH 2/2] Allow manual local DMG validation --- .github/workflows/local-dmg.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/local-dmg.yml b/.github/workflows/local-dmg.yml index 5f3204b9..b58007d4 100644 --- a/.github/workflows/local-dmg.yml +++ b/.github/workflows/local-dmg.yml @@ -17,6 +17,7 @@ on: push: branches: [main] paths: *build-inputs + workflow_dispatch: permissions: contents: read