name: Mobile on: workflow_dispatch: inputs: full: description: Also run the license check type: boolean default: true workflow_call: inputs: full: type: boolean default: true push: branches: [main] paths: - 'apps/mobile/**' - 'packages/core/**' - 'apps/desktop/Tests/StimKitTests/Fixtures/log-entries-vectors.json' - '.github/workflows/mobile.yml' - 'knip.ts' - 'package.json' - 'pnpm-lock.yaml' - 'pnpm-workspace.yaml' - 'scripts/ratchet*' - 'scripts/oxlint/**' pull_request: paths: - 'apps/mobile/**' - 'packages/core/**' - 'apps/desktop/Tests/StimKitTests/Fixtures/log-entries-vectors.json' - '.github/workflows/mobile.yml' - 'knip.ts' - 'package.json' - 'pnpm-lock.yaml' - 'pnpm-workspace.yaml' - 'scripts/ratchet*' - 'scripts/oxlint/**' concurrency: group: mobile-${{ github.workflow }}-${{ github.ref }}${{ inputs.full && '-full' || '' }} cancel-in-progress: true permissions: contents: read jobs: check: runs-on: ubuntu-latest defaults: run: working-directory: apps/mobile steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-stim with: install: 'false' build: 'false' - run: pnpm install --frozen-lockfile --filter stim-mobile... --filter stim-monorepo - run: pnpm --filter @stim-cli/core run build - run: pnpm run format:check - run: pnpm run lint - run: pnpm run intl:check - run: pnpm run typecheck # The native vector test compiles libsodium, which scripts/fetch-libsodium.mjs downloads on a cache miss. - uses: actions/cache@v4 with: path: apps/mobile/modules/stim-session/third_party/libsodium key: libsodium-${{ hashFiles('apps/mobile/modules/stim-session/libsodium.json') }} - run: pnpm test --ci - run: pnpm run licenses:check if: inputs.full knip: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup-stim with: build: 'false' - run: pnpm run knip