Skip to content

Workflow file for this run

name: Run Test
on:
pull_request:
branches: [ develop ]
# workflow의 실행은 하나 이상의 job으로 구성 됨
jobs:
# 이 workflow 는 "build" 라는 single job 으로 구성
build:
# job이 실행될 환경 - 최신 mac os
runs-on: macos-latest
strategy:
matrix:
xcode: [14.3.1]
steps:
# uses 키워드를 통해 Github Actions에서 기본으로 제공하는 액션을 사용 가능. 아래 액션은 repository 에 체크아웃하는 것
- uses: actions/checkout@v3
# shell 이용해서 하나의 command 수행
- name: Start xcode build 🛠
run: |
xcodebuild clean test -project BeaMin-iOS/BeaMin-iOS.xcodeproj -scheme BeaMin-iOS -destination 'platform=iOS Simulator,name=iPhone 11 Pro,OS=latest'
- name: Add PR Comment
if: ${{ success() }}
uses: mshick/add-pr-comment@v1
with:
message: |
## Build & Test Checked ✅
| ✅ | Auto Build And Test SUCCESS !!! |
|--- |---------------------------------------------- |
repo-token: ${{ secrets.ACCESS_TOKEN }}
repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens
allow-repeats: false # This is the default