FEAT: 상황에 따른 에러 핸들링 #84
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: Swift | |
on: | |
push: | |
branches: [ "dev" ] | |
pull_request: | |
branches: [ "dev" ] | |
jobs: | |
SwiftLint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Github Action For SwiftLint | |
uses: norio-nomura/[email protected] | |
Test: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: szenius/[email protected] | |
with: | |
timezoneMacos: "Asia/Seoul" | |
- name: Install pods | |
run: | | |
touch ./env.xcconfig | |
echo ${{ secrets.API_URL }} >> ./env.xcconfig | |
pod install --repo-update --clean-install | |
shell: bash | |
- name: Select Xcode Version | |
run: sudo xcode-select -s /Applications/Xcode_15.0.app | |
- name: Run Test | |
run: | | |
set -o pipefail && \ | |
xcodebuild -workspace ./HANE24.xcworkspace \ | |
-scheme 24HANE \ | |
-destination 'platform=iOS Simulator,name=iPhone 14 Pro' \ | |
-resultBundlePath TestResults test | xcbeautify | |
- uses: kishikawakatsumi/xcresulttool@v1 | |
with: | |
path: TestResults.xcresult | |
if: success() || failure() | |