Expand doctor checks for Android and KMP #37
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: Swift | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| swiftlint: | |
| name: SwiftLint | |
| runs-on: macos-15 | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Install SwiftLint | |
| run: brew install swiftlint | |
| - name: Verify release train and contract checksum | |
| run: ./scripts/verify-release.sh | |
| - name: Show SwiftLint version | |
| run: swiftlint version | |
| - name: Lint Swift sources | |
| run: swiftlint lint --strict --no-cache | |
| unit-tests: | |
| name: Swift package tests | |
| runs-on: macos-15 | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v7 | |
| - name: Show Swift toolchain | |
| run: swift --version | |
| - name: Run SmartMovieKit tests | |
| run: swift test --package-path SmartMovieKit --enable-code-coverage |