From 932ef87b3ee2919b9e0d22059f46042b3d3bce80 Mon Sep 17 00:00:00 2001 From: NaoyaTatetsu Date: Wed, 15 Jul 2026 01:53:24 +0900 Subject: [PATCH] Add CI workflow for macOS build and testing. Configured steps for project checkout, XcodeGen installation, and unsigned build & test execution. --- .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..e5e1b7f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + branches: [develop] + pull_request: + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-test: + name: Build & Test (macOS) + runs-on: macos-15 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install XcodeGen + run: brew install xcodegen + + - name: Generate Xcode project + run: xcodegen generate + + # No signing identity on CI: build & test unsigned. This compiles the app, + # the widget extension, and runs the Shared-logic unit tests. + - name: Build & test (unsigned) + run: | + set -o pipefail + xcodebuild test \ + -project GitHubProjectMenuBar.xcodeproj \ + -scheme GitHubProjectMenuBar \ + -destination 'platform=macOS' \ + -derivedDataPath build \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + CODE_SIGN_IDENTITY="" \ + DEVELOPMENT_TEAM=""