Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: skip re-builds for same tree hash (#5135)

Steffen Schmitz507a0eb7f405
diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml
index f671d88665..1565aaa4ed 100644
--- a/.github/workflows/pipeline.yml
+++ b/.github/workflows/pipeline.yml
@@ -17,8 +17,22 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
+ pre-job:
+ runs-on: ubuntu-latest
+ outputs:
+ should_skip: ${{ steps.skip_check.outputs.should_skip }}
+ timeout-minutes: 15
+ steps:
+ - id: skip_check
+ uses: fkirc/skip-duplicate-actions@v5
+ with:
+ do_not_skip: '["workflow_dispatch"]'
+
lint:
runs-on: ubuntu-latest
+ needs:
+ - pre-job
+ if: needs.pre-job.outputs.should_skip != 'true'
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
@@ -41,6 +55,9 @@ jobs:
test-docker-build:
timeout-minutes: 20
runs-on: ubuntu-latest
+ needs:
+ - pre-job
+ if: needs.pre-job.outputs.should_skip != 'true'
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -74,6 +91,9 @@ jobs:
tests-web-sync:
timeout-minutes: 20
runs-on: ubuntu-latest
+ needs:
+ - pre-job
+ if: needs.pre-job.outputs.should_skip != 'true'
name: tests-web-sync (node${{ matrix.node-version }}, pg${{ matrix.postgres-version }})
strategy:
matrix:
@@ -147,6 +167,9 @@ jobs:
tests-web-async:
timeout-minutes: 20
runs-on: ubuntu-latest
+ needs:
+ - pre-job
+ if: needs.pre-job.outputs.should_skip != 'true'
name: tests-web-async (node${{ matrix.node-version }}, pg${{ matrix.postgres-version }}, mode${{ matrix.blob-provider }})
strategy:
matrix:
@@ -219,6 +242,9 @@ jobs:
tests-worker:
timeout-minutes: 20
runs-on: ubuntu-latest
+ needs:
+ - pre-job
+ if: needs.pre-job.outputs.should_skip != 'true'
name: tests-worker (node${{ matrix.node-version }}, pg${{ matrix.postgres-version }}, mode${{ matrix.blob-provider }})
strategy:
matrix:
@@ -284,6 +310,9 @@ jobs:
e2e-tests:
runs-on: ubuntu-latest
+ needs:
+ - pre-job
+ if: needs.pre-job.outputs.should_skip != 'true'
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
@@ -325,6 +354,9 @@ jobs:
e2e-server-tests:
runs-on: ubuntu-latest
+ needs:
+ - pre-job
+ if: needs.pre-job.outputs.should_skip != 'true'
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub