diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a776075..df8d6fc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -63,7 +63,8 @@ jobs: - 'frontend/src/**' - 'frontend/package.json' - 'pnpm-lock.yaml' - - 'frontend/pnpm-workspace.yaml' + - 'packages/**' + - 'pnpm-workspace.yaml' config: - 'frontend/tsconfig.json' - 'frontend/jest.config.js' diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index af3e948b..64b164be 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -30,8 +30,6 @@ jobs: tests: ${{ steps.changes.outputs.tests }} config: ${{ steps.changes.outputs.config }} docs: ${{ steps.changes.outputs.docs }} - mobile: ${{ steps.changes.outputs.mobile }} - desktop: ${{ steps.changes.outputs.desktop }} backend: ${{ steps.changes.outputs.backend }} frontend: ${{ steps.changes.outputs.frontend }} packages: ${{ steps.changes.outputs.packages }} @@ -52,9 +50,11 @@ jobs: - 'frontend/**' packages: - 'frontend/src/**' - - 'frontend/pnpm-workspace.yaml' + - 'packages/**' + - 'pnpm-workspace.yaml' + - 'pnpm-lock.yaml' web: - - 'frontend/apps/web/**' + - 'web/**' src: - 'frontend/src/**' - 'frontend/public/**' @@ -74,12 +74,6 @@ jobs: docs: - '*.md' - 'docs/**' - mobile: - - 'frontend/platforms/capacitor/**' - - 'frontend/platforms/react-native/**' - desktop: - - 'frontend/platforms/electron/**' - - 'frontend/platforms/tauri/**' lint: name: Lint & Format @@ -91,9 +85,7 @@ jobs: needs.changes.outputs.web == 'true' || needs.changes.outputs.packages == 'true' || needs.changes.outputs.src == 'true' || - needs.changes.outputs.config == 'true' || - needs.changes.outputs.mobile == 'true' || - needs.changes.outputs.desktop == 'true' + needs.changes.outputs.config == 'true' defaults: run: working-directory: frontend @@ -143,9 +135,7 @@ jobs: needs.changes.outputs.web == 'true' || needs.changes.outputs.packages == 'true' || needs.changes.outputs.src == 'true' || - needs.changes.outputs.config == 'true' || - needs.changes.outputs.mobile == 'true' || - needs.changes.outputs.desktop == 'true' + needs.changes.outputs.config == 'true' defaults: run: working-directory: frontend @@ -261,80 +251,6 @@ jobs: BUILD_SIZE=$(du -sh .next | cut -f1) echo "Build size: $BUILD_SIZE" >> $GITHUB_STEP_SUMMARY - build-mobile: - name: Mobile Build Check - runs-on: ubuntu-latest - needs: [changes] - if: needs.changes.outputs.mobile == 'true' - defaults: - run: - working-directory: frontend - steps: - - name: Checkout - uses: actions/checkout@v7 - - - name: Setup pnpm - uses: pnpm/action-setup@v6 - - name: Setup Node.js - uses: actions/setup-node@v7 - with: - node-version: ${{ env.NODE_VERSION }} - cache: 'pnpm' - cache-dependency-path: pnpm-lock.yaml - - - name: Setup Java - uses: actions/setup-java@v6 - with: - distribution: 'temurin' - java-version: '17' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build web app - run: pnpm build - - - name: Sync Capacitor - working-directory: frontend/platforms/capacitor - run: | - pnpm install - npx cap sync android --no-build - - - name: Build Android (Debug) - working-directory: frontend/platforms/capacitor/android - run: ./gradlew assembleDebug - - build-desktop: - name: Desktop Build Check - runs-on: ubuntu-latest - needs: [changes] - if: needs.changes.outputs.desktop == 'true' - defaults: - run: - working-directory: frontend - steps: - - name: Checkout - uses: actions/checkout@v7 - - - name: Setup pnpm - uses: pnpm/action-setup@v6 - - name: Setup Node.js - uses: actions/setup-node@v7 - with: - node-version: ${{ env.NODE_VERSION }} - cache: 'pnpm' - cache-dependency-path: pnpm-lock.yaml - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Check Electron build - if: needs.changes.outputs.desktop == 'true' - working-directory: frontend/platforms/electron - run: | - pnpm install - pnpm build - security: name: Security Scan runs-on: ubuntu-latest