Skip to content

Commit

Permalink
[162] update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
akidon0000 committed Mar 14, 2024
1 parent 0962647 commit 8593ac7
Showing 1 changed file with 21 additions and 63 deletions.
84 changes: 21 additions & 63 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,68 +1,26 @@
name: CI

on:
push:
branches:
- main
- develop

# 動作バージョンの指定
env:
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app


on: [push, pull_request]

jobs:
# UnitTestResult:
# runs-on: macos-11 # 仮想環境指定(Windows Server, Ubuntu, Mac OSをサポートする)
#
# steps:
# # ソースコードを取得する
# - uses: actions/checkout@v1
#
# # キャッシュ
# - name: Cache CocoaPods files
# uses: actions/cache@v1
# with:
# path: Pods
# key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
# restore-keys: |
# ${{ runner.os }}-pods-
#
# # CocoaPodsをインストールする
# - name: CocoaPods
# run: pod install
#
# # シミュレーター向けにビルド
# # 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


info:
runs-on: macos-11

build:
runs-on: macos-13
steps:
# チェックアウト
- uses: actions/checkout@v1

# Xcodeの一覧出力
- name: Show Xcode list
run: ls /Applications | grep 'Xcode'

# Xcodeのバージョン出力
- name: Show Xcode version
run: xcodebuild -version

# 端末の一覧出力
- name: Show devices
run: xcrun xctrace list devices
- 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
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 test -v

0 comments on commit 8593ac7

Please sign in to comment.