Skip to content

Create test_on_main.yml #1

Create test_on_main.yml

Create test_on_main.yml #1

Workflow file for this run

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'