character_remove画像セットにContents.jsonを追加して警告を解消 #159
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unit Tests | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| gate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: echo "Branch is up to date" | |
| test: | |
| runs-on: macos-15 | |
| defaults: | |
| run: | |
| working-directory: Pikumei | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Cache SPM packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: Pikumei/SourcePackages | |
| key: spm-${{ hashFiles('Pikumei/Pikumei.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved') }} | |
| restore-keys: spm- | |
| - name: Generate dummy Secrets.swift | |
| run: | | |
| cat > Pikumei/Secrets.swift << 'EOF' | |
| import Foundation | |
| enum Secrets { | |
| static let supabaseURL = "https://dummy.supabase.co" | |
| static let supabaseAnonKey = "dummy-key" | |
| } | |
| EOF | |
| - name: Download Metal Toolchain | |
| run: xcodebuild -downloadComponent MetalToolchain | |
| - name: Run tests | |
| run: | | |
| set -o pipefail | |
| xcodebuild test \ | |
| -scheme Pikumei \ | |
| -destination 'platform=iOS Simulator,name=iPhone 16' \ | |
| -only-testing:PikumeiTests \ | |
| -clonedSourcePackagesDirPath SourcePackages \ | |
| -skipPackagePluginValidation \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| COMPILER_INDEX_STORE_ENABLE=NO \ | |
| 2>&1 | tee build.log | tail -50 |