* upgrade postgresql from 13 to 18 * wip * fix: convert Decimal to number in getTotalBookingDuration for PG 16+ compatibility
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: Production Build
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
env:
|
|
DATABASE_URL: ${{ secrets.CI_DATABASE_URL }}
|
|
DATABASE_DIRECT_URL: ${{ secrets.CI_DATABASE_URL }}
|
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
|
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
|
|
|
jobs:
|
|
build:
|
|
name: Build API v2
|
|
permissions:
|
|
contents: read
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
timeout-minutes: 30
|
|
services:
|
|
postgres:
|
|
image: postgres:18
|
|
credentials:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
env:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: calendso
|
|
options: >-
|
|
--health-cmd pg_isready
|
|
--health-interval 10s
|
|
--health-timeout 5s
|
|
--health-retries 5
|
|
ports:
|
|
- 5432:5432
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
sparse-checkout: .github
|
|
- uses: ./.github/actions/cache-checkout
|
|
- uses: ./.github/actions/yarn-install
|
|
- name: Generate Prisma schemas
|
|
working-directory: apps/api/v2
|
|
run: yarn workspace @calcom/api-v2 run generate-schemas
|
|
- name: Build API v2 with Turbo
|
|
run: |
|
|
export NODE_OPTIONS="--max_old_space_size=8192"
|
|
yarn turbo run build --filter=@calcom/api-v2
|
|
shell: bash
|