feat(repo): add incremental indexing and scoped smells #28
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: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| rust: | |
| name: Rust | |
| runs-on: macos-latest | |
| timeout-minutes: 30 | |
| env: | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Swift | |
| uses: swift-actions/setup-swift@v3 | |
| with: | |
| swift-version: "6.3" | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache Rust artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Show toolchain versions | |
| run: | | |
| swift --version | |
| rustc --version | |
| cargo --version | |
| - name: Check formatting | |
| run: cargo fmt --all --check | |
| - name: Lint workspace | |
| run: cargo clippy --workspace --all-targets -- -D warnings | |
| - name: Test workspace | |
| run: cargo test --workspace | |
| swift: | |
| name: Swift Bridge | |
| runs-on: macos-latest | |
| timeout-minutes: 30 | |
| env: | |
| GRAPHA_SWIFT_BRIDGE_MODE: required | |
| CARGO_TERM_COLOR: always | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Swift | |
| uses: swift-actions/setup-swift@v3 | |
| with: | |
| swift-version: "6.3" | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache Rust artifacts | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Show toolchain versions | |
| run: | | |
| xcode-select -p | |
| swift --version | |
| rustc --version | |
| cargo --version | |
| - name: Test Swift package | |
| run: swift test --package-path grapha-swift/swift-bridge | |
| - name: Test grapha-swift with required bridge | |
| run: cargo test -p grapha-swift |