refactor(webui): avoid importing expo-router
in API routes
#230
Workflow file for this run
This file contains 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: review | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: [main] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
core: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup project | |
uses: ./.github/actions/setup-project | |
- name: 🚨 Lint core | |
run: bun run lint -- --max-warnings 0 | |
- name: 📋 Typecheck core | |
run: bun run typecheck | |
- name: 🧪 Test core | |
run: bun test | |
- name: 👷 Build core | |
run: bun run build | |
webui: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🏗 Setup repo | |
uses: actions/checkout@v4 | |
- name: 🏗 Setup project | |
uses: ./.github/actions/setup-project | |
with: | |
with-webui: true | |
# Required for typechecking webui | |
- name: 👷 Build core | |
run: bun run build | |
- name: 📋 Typecheck webui | |
run: bun run typecheck | |
working-directory: webui | |
- name: 👷 Build webui | |
run: bun run build | |
working-directory: webui | |
env: | |
EXPO_USE_FAST_RESOLVER: true # Use the faster Metro resolver in SDK 51 |