mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-26 01:26:27 +00:00
# Which Problems Are Solved Unit tests can pass again. # How the Problems Are Solved As we don't want to waist too much time on this, we just use runners with bigger disks for now. Probably we anyway use distributed task execution with Nx Cloud instead of GitHub runners soon. # Additional Context Reverts zitadel/zitadel#9643 Reported internally https://zitadel.slack.com/archives/C081HPPECKU/p1756470129164019 Failing Actions: - https://github.com/zitadel/zitadel/actions/runs/17323362823/job/49181555445?pr=10564 - https://github.com/zitadel/zitadel/actions/runs/17435007449/job/49502354609?pr=10560#step:7:227
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
name: Build console
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
node_version:
|
|
required: true
|
|
type: string
|
|
outputs:
|
|
cache_key:
|
|
value: ${{ jobs.build.outputs.cache_key }}
|
|
cache_path:
|
|
value: ${{ jobs.build.outputs.cache_path }}
|
|
|
|
env:
|
|
cache_path: console/dist/console
|
|
|
|
jobs:
|
|
build:
|
|
outputs:
|
|
cache_key: ${{ steps.cache.outputs.cache-primary-key }}
|
|
cache_path: ${{ env.cache_path }}
|
|
runs-on:
|
|
group: zitadel-public
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/cache/restore@v4
|
|
timeout-minutes: 1
|
|
continue-on-error: true
|
|
id: cache
|
|
with:
|
|
key: console-${{ hashFiles('console', 'proto', '!console/dist') }}
|
|
restore-keys: |
|
|
console-
|
|
path: ${{ env.cache_path }}
|
|
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
|
uses: pnpm/action-setup@v4
|
|
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ inputs.node_version }}
|
|
cache: "pnpm"
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
|
name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
|
name: Build console with Turbo
|
|
run: pnpm turbo build --filter=./console
|
|
- if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
path: ${{ env.cache_path }}
|
|
key: ${{ steps.cache.outputs.cache-primary-key }}
|