Merge pull request #7 from g-enius/refactor/session-scoped-service-lo… #335
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: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: SwiftLint | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install SwiftLint | |
| run: brew install swiftlint | |
| - name: Run SwiftLint | |
| run: swiftlint lint --reporter github-actions-logging | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: List available Xcode versions | |
| run: ls -la /Applications | grep Xcode | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode.app | |
| - name: Show Xcode version | |
| run: xcodebuild -version | |
| - name: List available simulators | |
| run: xcrun simctl list devices available | |
| - name: Build iOS App | |
| run: | | |
| xcodebuild build \ | |
| -workspace Fun.xcworkspace \ | |
| -scheme FunApp \ | |
| -destination 'platform=iOS Simulator,name=iPhone 17 Pro' \ | |
| -configuration Debug \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Run Unit Tests | |
| run: | | |
| xcodebuild test \ | |
| -workspace Fun.xcworkspace \ | |
| -scheme FunApp \ | |
| -skip-testing UITests \ | |
| -destination 'platform=iOS Simulator,name=iPhone 17 Pro' \ | |
| -configuration Debug \ | |
| CODE_SIGNING_ALLOWED=NO | |