refactor(ci): Separate Build/Test and Documentation Workflows #1
Workflow file for this run
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: PactKit CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "*" ] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-library: | |
| name: Test PactKitCore | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Select Xcode 16.4 | |
| run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer | |
| - name: Run library tests | |
| run: swift test | |
| build-example-app: | |
| name: Build Example App | |
| needs: test-library | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Select Xcode 16.4 | |
| run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer | |
| - name: Build iOS Example App | |
| run: | | |
| xcodebuild build \ | |
| -project Examples/PactKit-iOS-Example/PactKit-iOS-Example.xcodeproj \ | |
| -scheme PactKit-iOS-Example \ | |
| -destination 'platform=iOS Simulator,name=iPhone 15' |