Gallery sync upgrades #1170
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: 🧪 Test Console build | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| - staging | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| - staging | |
| paths: | |
| - "cloud/websites/console/**" | |
| - "cloud/websites/shared/**" | |
| concurrency: | |
| group: console-build-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| console: | |
| name: Build cloud/websites/console | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| # Needed so paths-filter can diff against the base of the PR | |
| fetch-depth: 0 | |
| - name: Compute changes | |
| id: filter | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| console: | |
| - 'cloud/websites/console/**' | |
| - 'cloud/websites/shared/**' | |
| - name: Skip if no console changes | |
| if: steps.filter.outputs.console != 'true' | |
| run: | | |
| echo "No changes under cloud/websites/console; skipping build." | |
| - name: Setup Bun | |
| if: steps.filter.outputs.console == 'true' | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Cache Bun cache | |
| if: steps.filter.outputs.console == 'true' | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-cache-console-${{ hashFiles('cloud/bun.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-bun-cache-console- | |
| - name: Install dependencies | |
| if: steps.filter.outputs.console == 'true' | |
| working-directory: cloud | |
| run: bun install --frozen-lockfile | |
| - name: Build SDK package (required for TypeScript types) | |
| if: steps.filter.outputs.console == 'true' | |
| working-directory: cloud/packages/sdk | |
| run: bun run build | |
| - name: Run build | |
| if: steps.filter.outputs.console == 'true' | |
| working-directory: cloud/websites/console | |
| run: bun run build |