코드 정리 #100
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: macos-14 | |
| env: | |
| CODECOV_PACKAGE_NAME: DIContainer | |
| strategy: | |
| matrix: | |
| env: | |
| - sdk: iphonesimulator | |
| destination: platform=iOS Simulator,name=iPhone 11 Pro,OS=latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Select Xcode 16.0 | |
| run: sudo xcode-select -s /Applications/Xcode_16.0.app | |
| - name: List SDKs and Devices | |
| run: xcodebuild -showsdks | |
| - name: Build and Test | |
| run: | | |
| set -o pipefail && swift test --no-parallel --enable-code-coverage | xcpretty -c; | |
| env: | |
| SDK: ${{ matrix.env.sdk }} | |
| DESTINATION: ${{ matrix.env.destination }} | |
| - name: Upload Code Coverage | |
| run: | | |
| bash <(curl -s https://codecov.io/bash) \ | |
| -X xcodeplist \ | |
| -J "$CODECOV_PACKAGE_NAME" | |
| env: | |
| CODECOV_TOKEN: bbf7a4f2-5199-4a17-b290-1ec9629b5390 |