CodeCov 추가 및 Jobs 분기 처리 #3
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
# This workflow will build a Swift project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
name: Bibbi | |
on: | |
push: | |
branches: | |
- develop | |
- feature/* | |
tags: | |
- "v*" | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: tuist clean command start or codecov | |
- uses: codecov/codecov-action@v3 # Codecov 실행 | |
- name: Upload coverage reports to Codecov | |
- uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- uses: tuist/[email protected] # Tuist clean 명령어 실행 | |
with: | |
command: 'clean' | |
- uses: tuist/[email protected] # Tuist Fetch 명령어 실행 | |
- name: tuist fetch command start | |
with: | |
command: 'fetch' | |
- uses: tuist/[email protected] # Tuist generate 명령어 실행 | |
- name: tuist generate command start | |
with: | |
command: 'generate' | |
- uses: tuist/[email protected] # Tuist Build 📲 | |
- name: tuist build command start | |
with: | |
command: 'build' | |
arguments: '' | |
- name: xcode build 🛠️ | |
run: xcode Build | |
xcodebuild clean build -workspace "Bibbi.xcworkspace" -scheme "App" -destination "platform=iOS Simulator,name=iPhone 13 mini,OS=latest" -enabledCodeCoverage YES build test | |
deploy: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: fastlane deploy start | |
- run: fastlane # fastalne 실행 명령여 추가 | |
env: | |
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }} # APP_STORE CONNECT API KEY | |
APP_STORE_CONNECT_API_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_ISSUER_ID }} # APP_STORE_CONNECT_API_ISSUER_ID | |
APP_STORE_CONNECT_API_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_API_KEY_CONTENT}} #APP_STORE_CONNECT_API_KEY_CONTENT | |