Skip to content

Gallery sync upgrades #1203

Gallery sync upgrades

Gallery sync upgrades #1203

Workflow file for this run

name: 🧪 Test Cloud build
on:
pull_request:
branches:
- main
- dev
- staging
push:
branches:
- main
- dev
- staging
paths:
- "cloud/packages/cloud/**"
- "cloud/bun.lock"
- "cloud/package.json"
concurrency:
group: cloud-build-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
cloud:
name: Build cloud/packages/cloud
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Compute changes
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
cloud:
- 'cloud/packages/cloud/**'
- 'cloud/bun.lock'
- 'cloud/package.json'
- name: Skip if no cloud package changes
if: steps.filter.outputs.cloud != 'true'
run: echo "No changes under cloud/packages/cloud; skipping build."
- name: Setup Bun
if: steps.filter.outputs.cloud == 'true'
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Cache Bun cache
if: steps.filter.outputs.cloud == 'true'
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-cache-cloud-${{ hashFiles('cloud/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-cache-cloud-
- name: Install dependencies
if: steps.filter.outputs.cloud == 'true'
working-directory: cloud
run: bun install
- name: Build SDK package
if: steps.filter.outputs.cloud == 'true'
working-directory: cloud/packages/sdk
run: bun run build
- name: Build types package
if: steps.filter.outputs.cloud == 'true'
working-directory: cloud/packages/types
run: bun run build
- name: Run build
if: steps.filter.outputs.cloud == 'true'
working-directory: cloud/packages/cloud
run: bun run build