🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
build: add caches to CI pipeline (#8634)
Steffen Schmitzb9e54d2a1939
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.ymlindex 09dac1f4a8..3ee3f07d80 100644--- a/.github/workflows/pipeline.yml+++ b/.github/workflows/pipeline.yml@@ -43,6 +43,14 @@ jobs:node-version: 24cache: "pnpm"cache-dependency-path: "pnpm-lock.yaml"+ - name: Setup Turbo cache+ uses: actions/cache@v4+ with:+ path: .turbo+ key: ${{ runner.os }}-turbo-lint-${{ github.sha }}+ restore-keys: |+ ${{ runner.os }}-turbo-lint-+ ${{ runner.os }}-turbo-- name: install dependenciesrun: |pnpm i@@ -176,6 +184,25 @@ jobs:echo "LANGFUSE_INGESTION_QUEUE_DELAY_MS=1" >> .envecho "LANGFUSE_CACHE_PROMPT_ENABLED=false" >> .envecho "LANGFUSE_INGESTION_CLICKHOUSE_WRITE_INTERVAL_MS=1" >> .env+ - name: Setup Turbo cache+ uses: actions/cache@v4+ with:+ path: .turbo+ key: ${{ runner.os }}-turbo-web-sync-${{ matrix.node-version }}-${{ matrix.postgres-version }}-${{ github.sha }}+ restore-keys: |+ ${{ runner.os }}-turbo-web-sync-${{ matrix.node-version }}-${{ matrix.postgres-version }}-+ ${{ runner.os }}-turbo-web-sync-${{ matrix.node-version }}-+ ${{ runner.os }}-turbo-+ - name: Cache Next.js builds+ uses: actions/cache@v4+ with:+ path: |+ ~/.npm+ ${{ github.workspace }}/web/.next/cache+ key: ${{ runner.os }}-nextjs-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('web/**/*.js', 'web/**/*.jsx', 'web/**/*.ts', 'web/**/*.tsx') }}+ restore-keys: |+ ${{ runner.os }}-nextjs-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}-+ ${{ runner.os }}-nextjs-${{ matrix.node-version }}-- name: Run dev containersrun: |docker compose -f docker-compose.dev.yml up -d@@ -255,6 +282,25 @@ jobs:echo "LANGFUSE_TRACE_DELETE_CONCURRENCY=100" >> .envecho "ADMIN_API_KEY=admin-api-key" >> .envecho "LANGFUSE_EE_LICENSE_KEY=langfuse_ee_test" >> .env+ - name: Setup Turbo cache+ uses: actions/cache@v4+ with:+ path: .turbo+ key: ${{ runner.os }}-turbo-web-async-${{ matrix.node-version }}-${{ matrix.postgres-version }}-${{ matrix.deploy-mode }}-${{ github.sha }}+ restore-keys: |+ ${{ runner.os }}-turbo-web-async-${{ matrix.node-version }}-${{ matrix.postgres-version }}-${{ matrix.deploy-mode }}-+ ${{ runner.os }}-turbo-web-async-${{ matrix.node-version }}-${{ matrix.postgres-version }}-+ ${{ runner.os }}-turbo-+ - name: Cache Next.js builds+ uses: actions/cache@v4+ with:+ path: |+ ~/.npm+ ${{ github.workspace }}/web/.next/cache+ key: ${{ runner.os }}-nextjs-async-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('web/**/*.js', 'web/**/*.jsx', 'web/**/*.ts', 'web/**/*.tsx') }}+ restore-keys: |+ ${{ runner.os }}-nextjs-async-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}-+ ${{ runner.os }}-nextjs-async-${{ matrix.node-version }}-- name: Run dev containersrun: |docker compose -f docker-compose.dev${{ matrix.deploy-mode }}.yml up -d@@ -372,6 +418,24 @@ jobs:with:username: ${{ secrets.DOCKERHUB_USERNAME_READ }}password: ${{ secrets.DOCKERHUB_TOKEN_READ }}+ - name: Setup Turbo cache+ uses: actions/cache@v4+ with:+ path: .turbo+ key: ${{ runner.os }}-turbo-e2e-${{ github.sha }}+ restore-keys: |+ ${{ runner.os }}-turbo-e2e-+ ${{ runner.os }}-turbo-+ - name: Cache Next.js builds+ uses: actions/cache@v4+ with:+ path: |+ ~/.npm+ ${{ github.workspace }}/web/.next/cache+ key: ${{ runner.os }}-nextjs-e2e-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('web/**/*.js', 'web/**/*.jsx', 'web/**/*.ts', 'web/**/*.tsx') }}+ restore-keys: |+ ${{ runner.os }}-nextjs-e2e-${{ hashFiles('**/pnpm-lock.yaml') }}-+ ${{ runner.os }}-nextjs-e2e-- name: install dependenciesrun: |pnpm install@@ -432,7 +496,24 @@ jobs:node-version: 24cache: "pnpm"cache-dependency-path: "pnpm-lock.yaml"-+ - name: Setup Turbo cache+ uses: actions/cache@v4+ with:+ path: .turbo+ key: ${{ runner.os }}-turbo-e2e-server-${{ github.sha }}+ restore-keys: |+ ${{ runner.os }}-turbo-e2e-server-+ ${{ runner.os }}-turbo-+ - name: Cache Next.js builds+ uses: actions/cache@v4+ with:+ path: |+ ~/.npm+ ${{ github.workspace }}/web/.next/cache+ key: ${{ runner.os }}-nextjs-e2e-server-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('web/**/*.js', 'web/**/*.jsx', 'web/**/*.ts', 'web/**/*.tsx') }}+ restore-keys: |+ ${{ runner.os }}-nextjs-e2e-server-${{ hashFiles('**/pnpm-lock.yaml') }}-+ ${{ runner.os }}-nextjs-e2e-server-- name: install dependenciesrun: |pnpm installdiff --git a/turbo.json b/turbo.jsonindex 6ba0da1a0b..e47e9e9e47 100644--- a/turbo.json+++ b/turbo.json@@ -5,7 +5,8 @@"tasks": {"build": {"dependsOn": ["db:generate", "^build"],- "outputs": ["dist/**", ".next/**", "!.next/cache/**"]+ "outputs": ["dist/**", ".next/**", "!.next/cache/**"],+ "cache": true},"start": {"dependsOn": ["^start"]@@ -38,10 +39,12 @@"dependsOn": ["^db:generate"]},"lint": {- "cache": false+ "cache": true,+ "outputs": []},"test": {- "dependsOn": ["^test", "db:generate"]+ "dependsOn": ["^test", "db:generate"],+ "cache": true}}}