From 209cb560c87a354e0b1507597ea5bf31043886d4 Mon Sep 17 00:00:00 2001 From: Dustin Do Date: Tue, 9 Jul 2024 02:22:41 +0700 Subject: [PATCH] feat(ci): add running expo export --- .github/workflows/checks.yaml | 37 +++++++++++++++++++++++++++++++++++ apps/mobile/package.json | 1 + 2 files changed, 38 insertions(+) diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index d6dfeb28..fc72a3e1 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -42,6 +42,43 @@ jobs: - name: Build run: pnpm api:build + build_mobile: + name: Build mobile (Expo) + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + run_install: false + + - name: Get pnpm store directory + shell: bash + run: | + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + + - uses: actions/cache@v4 + name: Setup pnpm cache + with: + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + + - name: Install dependencies + run: pnpm install + + - name: Build + run: pnpm --filter @6pm/mobile run export + lint: name: Lint runs-on: ubuntu-latest diff --git a/apps/mobile/package.json b/apps/mobile/package.json index f3e11f18..71a287d4 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -8,6 +8,7 @@ "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web", + "export": "expo export", "test": "jest --watchAll", "lint": "expo lint", "check": "biome check"