Release to Production v2.9.27 - 2026-07-26 #1996
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: Mobile SDK CI | |
| on: | |
| pull_request: | |
| paths: | |
| - "packages/mobile-sdk-alpha/**" | |
| - ".github/workflows/mobile-sdk-ci.yml" | |
| - ".github/actions/**" | |
| - ".github/CI_FORCE_RUN" | |
| jobs: | |
| # Build dependencies once and cache for other jobs | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/pnpm-install | |
| - name: Build dependencies | |
| shell: bash | |
| run: | | |
| pnpm --filter @selfxyz/common build | |
| pnpm --filter @selfxyz/mobile-sdk-alpha build | |
| - name: Cache build artifacts | |
| uses: ./.github/actions/cache-mobile-sdk-build | |
| with: | |
| mode: save | |
| cache-version: v1 | |
| lint: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/pnpm-install | |
| - name: Restore build artifacts | |
| id: restore-build | |
| uses: ./.github/actions/cache-mobile-sdk-build | |
| with: | |
| mode: restore | |
| cache-version: v1 | |
| fail-on-cache-miss: false | |
| - name: Build dependencies (fallback on cache miss) | |
| if: steps.restore-build.outputs.cache-hit != 'true' | |
| run: | | |
| pnpm --filter @selfxyz/common build | |
| pnpm --filter @selfxyz/mobile-sdk-alpha build | |
| - name: Run linter | |
| run: timeout 20m pnpm --filter @selfxyz/mobile-sdk-alpha exec eslint . | |
| format: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/pnpm-install | |
| - name: Restore build artifacts | |
| id: restore-build | |
| uses: ./.github/actions/cache-mobile-sdk-build | |
| with: | |
| mode: restore | |
| cache-version: v1 | |
| fail-on-cache-miss: false | |
| - name: Build dependencies (fallback on cache miss) | |
| if: steps.restore-build.outputs.cache-hit != 'true' | |
| run: | | |
| pnpm --filter @selfxyz/common build | |
| pnpm --filter @selfxyz/mobile-sdk-alpha build | |
| - name: Check Prettier formatting | |
| run: pnpm --filter @selfxyz/mobile-sdk-alpha exec prettier --check . | |
| types: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/pnpm-install | |
| - name: Restore build artifacts | |
| id: restore-build | |
| uses: ./.github/actions/cache-mobile-sdk-build | |
| with: | |
| mode: restore | |
| cache-version: v1 | |
| fail-on-cache-miss: false | |
| - name: Build dependencies (fallback on cache miss) | |
| if: steps.restore-build.outputs.cache-hit != 'true' | |
| run: | | |
| pnpm --filter @selfxyz/common build | |
| pnpm --filter @selfxyz/mobile-sdk-alpha build | |
| - name: Type checking | |
| run: timeout 20m pnpm --filter @selfxyz/mobile-sdk-alpha types | |
| test: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Dependencies | |
| uses: ./.github/actions/pnpm-install | |
| - name: Restore build artifacts | |
| id: restore-build | |
| uses: ./.github/actions/cache-mobile-sdk-build | |
| with: | |
| mode: restore | |
| cache-version: v1 | |
| fail-on-cache-miss: false | |
| - name: Build dependencies (fallback on cache miss) | |
| if: steps.restore-build.outputs.cache-hit != 'true' | |
| run: | | |
| pnpm --filter @selfxyz/common build | |
| pnpm --filter @selfxyz/mobile-sdk-alpha build | |
| - name: Run tests | |
| run: pnpm --filter @selfxyz/mobile-sdk-alpha test |