Skip to content

Commit

Permalink
[162] update test command for xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
akidon0000 committed Mar 14, 2024
1 parent 8593ac7 commit 3d07cf0
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
name: CI

on: [push, pull_request]
on: [pull_request]

jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s "/Applications/Xcode_15.0.1.app"
- name: CocoaPods
run: pod install
- name: build
run: swift build -v

test:
runs-on: macos-13
Expand All @@ -22,5 +12,16 @@ jobs:
run: sudo xcode-select -s "/Applications/Xcode_15.0.1.app"
- name: CocoaPods
run: pod install
- name: build
run: swift test -v
# シミュレーター向けにビルド
# set -o pipefail (エラー発生時終了)
# bundle exec xcpretty --report html (エラー文を整形)
- name: Xcode UnitTest
run: set -o pipefail &&
xcodebuild
-sdk iphonesimulator
-configuration Debug
-workspace univIP.xcworkspace
-scheme univIP
-destination 'platform=iOS Simulator,name=iPhone 11 Pro Max'
-skip-testing:univIPUITests
clean test

0 comments on commit 3d07cf0

Please sign in to comment.