Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
96 changes: 6 additions & 90 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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/**'
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Loading