Update #7
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: [master, main, "feature/**", "release/**"] | |
| pull_request: | |
| branches: [master, main] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-test: | |
| name: Build & Test (iOS Simulator) | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_15.4.app | |
| - name: Show toolchain | |
| run: | | |
| xcodebuild -version | |
| swift --version | |
| - name: Resolve packages | |
| run: swift package resolve | |
| - name: Build (iOS Simulator) | |
| run: | | |
| xcodebuild build \ | |
| -scheme XCoordinator \ | |
| -destination 'generic/platform=iOS Simulator' \ | |
| -skipPackagePluginValidation \ | |
| CODE_SIGNING_ALLOWED=NO | |
| - name: Test | |
| run: | | |
| xcodebuild test \ | |
| -scheme XCoordinator \ | |
| -destination 'platform=iOS Simulator,name=iPhone 15' \ | |
| -skipPackagePluginValidation \ | |
| CODE_SIGNING_ALLOWED=NO | |
| pod-lint: | |
| name: CocoaPods lint | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_15.4.app | |
| - name: Lint podspec | |
| run: pod lib lint --allow-warnings --fail-fast | |
| docs: | |
| name: DocC build | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_15.4.app | |
| - name: Build documentation | |
| run: | | |
| swift package \ | |
| --allow-writing-to-directory ./Documentation \ | |
| generate-documentation \ | |
| --target XCoordinator \ | |
| --output-path ./Documentation \ | |
| --transform-for-static-hosting \ | |
| --warnings-as-errors |