From 7a07e669c985b8b46ce10ab4fe4a1ea562f578bb Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Tue, 10 Feb 2026 22:55:57 +0000 Subject: [PATCH] feat: add mobile app compilation and testing workflows --- .github/workflows/compile.yml | 16 +++++++++++ .github/workflows/test.mobile-app.yaml | 39 ++++++++++++++++++++++++++ MobileApp/package.json | 3 +- 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.mobile-app.yaml diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index e5c88a4dfa..399752fdde 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -389,6 +389,22 @@ jobs: max_attempts: 3 command: cd MCP && npm update @oneuptime/common && npm install && npm run compile && npm run dep-check + compile-mobile-app: + runs-on: ubuntu-latest + env: + CI_PIPELINE_ID: ${{github.run_number}} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: latest + - name: Compile MobileApp + uses: nick-fields/retry@v3 + with: + timeout_minutes: 30 + max_attempts: 3 + command: cd MobileApp && npm install && npm run compile + compile-ai-agent: runs-on: ubuntu-latest env: diff --git a/.github/workflows/test.mobile-app.yaml b/.github/workflows/test.mobile-app.yaml new file mode 100644 index 0000000000..dfa370a0af --- /dev/null +++ b/.github/workflows/test.mobile-app.yaml @@ -0,0 +1,39 @@ +name: MobileApp Test + +on: + pull_request: + push: + branches-ignore: + - 'hotfix-*' # excludes hotfix branches + - 'release' + +jobs: + expo-doctor: + runs-on: ubuntu-latest + env: + CI_PIPELINE_ID: ${{github.run_number}} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: latest + - run: cd MobileApp && npm install + - name: Run Expo Doctor + run: cd MobileApp && npx expo-doctor@latest + + expo-web-export: + runs-on: ubuntu-latest + env: + CI_PIPELINE_ID: ${{github.run_number}} + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: latest + - run: cd MobileApp && npm install + - name: Export Web Bundle + uses: nick-fields/retry@v3 + with: + timeout_minutes: 30 + max_attempts: 3 + command: cd MobileApp && npx expo export --platform web diff --git a/MobileApp/package.json b/MobileApp/package.json index 8c0b82c6e0..a18a50d30c 100644 --- a/MobileApp/package.json +++ b/MobileApp/package.json @@ -6,7 +6,8 @@ "start": "expo start", "android": "expo run:android", "ios": "expo run:ios", - "web": "expo start --web" + "web": "expo start --web", + "compile": "tsc --noEmit" }, "dependencies": { "@react-native-async-storage/async-storage": "^2.2.0",