Skip to content

fix(remo-tart): make ensure_attached actually deliver a working VM #162

fix(remo-tart): make ensure_attached actually deliver a working VM

fix(remo-tart): make ensure_attached actually deliver a working VM #162

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Lint & Test
runs-on: macos-26
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
with:
shared-key: cargo
- run: cargo fmt --all --check
- run: cargo clippy --workspace -- -D warnings
- run: cargo test --workspace
python:
name: Python Lint & Test (remo-tart)
runs-on: ubuntu-latest
defaults:
run:
working-directory: tools/remo-tart
steps:
- uses: actions/checkout@v5
- uses: astral-sh/setup-uv@v3
with:
version: "0.11.7"
- run: uv sync --group dev
- run: uv run ruff check .
- run: uv run ruff format --check .
- run: uv run pytest -v
e2e:
name: E2E (Simulator)
needs: check
runs-on: macos-26
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-apple-ios-sim
- uses: Swatinem/rust-cache@v2
with:
shared-key: cargo
- name: Cache Xcode DerivedData & SPM packages
uses: actions/cache@v5
with:
path: |
~/Library/Developer/Xcode/DerivedData
~/Library/Caches/org.swift.swiftpm
key: xcode-e2e-${{ hashFiles('examples/ios/RemoExamplePackage/**/*.swift', 'swift/RemoSwift/**/*.swift') }}-${{ github.sha }}
restore-keys: |
xcode-e2e-${{ hashFiles('examples/ios/RemoExamplePackage/**/*.swift', 'swift/RemoSwift/**/*.swift') }}-
xcode-e2e-
- name: Boot simulator
run: xcrun simctl boot 'iPhone 17' 2>/dev/null || true
- name: Build iOS SDK (simulator)
run: ./build-ios.sh sim
- name: Run iOS unit tests (RemoExampleFeatureTests)
working-directory: examples/ios
run: |
xcodebuild \
-workspace RemoExample.xcworkspace \
-scheme RemoExample \
-destination 'platform=iOS Simulator,name=iPhone 17' \
-only-testing:RemoExampleFeatureTests \
test
- name: Run E2E tests
run: ./scripts/e2e-test.sh --screenshots --record
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v7
with:
name: e2e-artifacts
path: /tmp/remo-e2e/
retention-days: 14