Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/cd_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
name: deploy_app_store

on:
workflow_call:
push:
branches:
- "release/*"

env:
# チェックアウト
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/cd_testFlight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
name: deploy_test_flight

on:
workflow_call:
push:
branches:
- "main"

env:
# チェックアウト
Expand Down
153 changes: 0 additions & 153 deletions .github/workflows/ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .prefire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ test_configuration:
target: homete
test_target_path: ${PROJECT_DIR}/hometeSnapshotTests
simulator_device: "iPhone17,3"
required_os: 18
required_os: 17
preview_default_enabled: true
use_grouped_snapshots: true
sources:
Expand Down
3 changes: 2 additions & 1 deletion ProjectTools/Dangerfile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ for targetInfo in lintTargets {
)
}

let resultBundlePath = "Build/test.xcresult"
// Xcode Cloudでは CI_RESULT_BUNDLE_PATH 環境変数にxcresultのパスが入る
let resultBundlePath = ProcessInfo.processInfo.environment["CI_RESULT_BUNDLE_PATH"] ?? "Build/test.xcresult"

// Code Coverageの確認

Expand Down
5 changes: 5 additions & 0 deletions ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

# Xcode CloudでSwift Package Managerプラグインの検証をスキップする
# PrefireTestsPluginなどのパッケージプラグインを許可するために必要
defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
23 changes: 23 additions & 0 deletions ci_scripts/ci_post_xcodebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/sh

# DANGER_ENABLEDが設定されていない場合はスキップ(Xcode Cloudの環境変数で制御)
if [ "$DANGER_ENABLED" != "YES" ]; then
echo "DANGER_ENABLED=YES が設定されていないためDangerをスキップします"
exit 0
fi

# PRビルド時のみ実行
if [ -z "$CI_PULL_REQUEST_NUMBER" ]; then
echo "PRビルドではないためDangerをスキップします"
exit 0
fi

echo "Dangerを実行します (PR #${CI_PULL_REQUEST_NUMBER})"

# DangerJS(danger-swiftが依存)をインストール
npm install -g danger

# ProjectToolsディレクトリでビルドして実行(ci.ymlと同じ方法)
cd "$CI_WORKSPACE/ProjectTools"
swift build
swift run danger-swift ci --cwd ../