(build): front back #7
This file contains hidden or 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: PR Check | |
| on: | |
| pull_request: | |
| branches: [main, staging] | |
| push: | |
| branches: [main, staging] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check: | |
| name: Lint, Format & Build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: π₯ Checkout | |
| uses: actions/checkout@v4 | |
| - name: π Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: π¦ Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: π Lint | |
| run: bun run lint | |
| - name: π¨ Format check | |
| run: bun run format:check | |
| # TODO: Re-enable typecheck after fixing TS errors | |
| # - name: π Type check (webapp) | |
| # run: bun run typecheck:webapp | |
| # - name: π Type check (admin) | |
| # run: bun run typecheck:admin | |
| # - name: π Type check (backend) | |
| # run: bun run typecheck:backend | |
| - name: ποΈ Build webapp | |
| run: bun run --filter @docs.plus/webapp build:local | |
| env: | |
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL || 'http://localhost:54321' }} | |
| NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY || 'dummy-key' }} | |
| - name: ποΈ Build admin | |
| run: bun run --filter @docs.plus/admin-dashboard build:local | |
| env: | |
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL || 'http://localhost:54321' }} | |
| NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY || 'dummy-key' }} |