diff --git a/.github/workflows/GOMS_CI.yml b/.github/workflows/GOMS_CI.yml index f7325d6..30cfc66 100644 --- a/.github/workflows/GOMS_CI.yml +++ b/.github/workflows/GOMS_CI.yml @@ -1,48 +1,52 @@ -name: Expo CI +name: GOMS CI on: pull_request: branches: [ "*" ] jobs: - CI: - runs-on: ubuntu-latest + build: + runs-on: macos-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - - uses: swift-actions/setup-swift@v1 - with: - xcode-version: 16.0 - - - name: Build - run: swift build - - # - name: Run tests - # run: swift test - - - name: Success Discord Notification - uses: sarisia/actions-status-discord@v1 - if: ${{ success() }} - with: - title: CI 성공! - webhook: ${{ secrets.DISCORD_WEBHOOK }} - status: ${{ job.status }} - image: ${{ secrets.CI_SUCCESS_IMAGE }} - description: CI를 성공했습니다. - color: 00FF00 - username: CI Bot - url: https://github.com/team-haribo/GOMS-iOS-V2 - - - name: Failed Discord Notification - uses: sarisia/actions-status-discord@v1 - if: ${{ failure() }} - with: - title: CI 실패! - webhook: ${{ secrets.DISCORD_WEBHOOK }} - status: ${{ job.status }} - image: ${{ secrets.CI_FAIL_IMAGE }} - description: CI를 실패했습니다. - color: FF0000 - username: CI Bot - url: https://github.com/team-haribo/GOMS-iOS-V2 + - uses: actions/checkout@v4 + + - name: Select Xcode + run: sudo xcode-select -s /Applications/Xcode_14.3.app + + - name: Install Dependencies + run: | + pod install --repo-update + + - name: Build + run: | + xcodebuild clean build -workspace GOMS-iOS-V2.xcworkspace -scheme "GOMS-iOS-V2" -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 14,OS=16.4" ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO + + # - name: Run tests + # run: | + # xcodebuild test -workspace GOMS-iOS-V2.xcworkspace -scheme "GOMS-iOS-V2" -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 14,OS=16.4" ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO + + - name: Success Discord Notification + uses: sarisia/actions-status-discord@v1 + if: ${{ success() }} + with: + title: CI 성공! + webhook: ${{ secrets.DISCORD_WEBHOOK }} + status: ${{ job.status }} + image: ${{ secrets.CI_SUCCESS_IMAGE }} + description: CI를 성공했습니다. + color: 00FF00 + username: CI Bot + url: https://github.com/team-haribo/GOMS-iOS-V2 + + - name: Failed Discord Notification + uses: sarisia/actions-status-discord@v1 + if: ${{ failure() }} + with: + title: CI 실패! + webhook: ${{ secrets.DISCORD_WEBHOOK }} + status: ${{ job.status }} + image: ${{ secrets.CI_FAIL_IMAGE }} + description: CI를 실패했습니다. + color: FF0000 + username: CI Bot + url: https://github.com/team-haribo/GOMS-iOS-V2