Create test_on_main.yml #1
This file contains 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: Build & Test | |
on: | |
# main 브랜치에 push 나 pull request 이벤트가 발생하면 하위 workflow 실행 | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: # workflow는 하나 이상의 jobs로 만들어짐 | |
build: | |
runs-on: macos-latest | |
steps: | |
# uses 키워드를 통해 Github Actions에서 기본으로 제공하는 액션을 사용 가능. | |
# repository에 체크아웃 | |
- uses: actions/checkout@v2 | |
# shell 이용해서 하나의 command 수행 | |
- name: Start xcode build 🛠 | |
run: | | |
xcodebuild clean test -project usket.RandomUser/usket.RandomUser.xcodeproj -scheme usket.RandomUser -destination 'platform=iOS Simulator,name=iPhone 11 Pro,OS=16.5' |