Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

ci: use setup-sqlx-cli composite in 5 workflows (#60098)

Raúl Negrón-Oterob88c48f9d55e
diff --git a/.github/workflows/cd-sandbox-base-image.yml b/.github/workflows/cd-sandbox-base-image.yml
index 6093781002ff..19a9cefa1033 100644
--- a/.github/workflows/cd-sandbox-base-image.yml
+++ b/.github/workflows/cd-sandbox-base-image.yml
@@ -89,7 +89,7 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Install sqlx-cli
- run: cargo install sqlx-cli --version 0.8.0 --features postgres --no-default-features --locked
+ uses: ./.github/actions/setup-sqlx-cli
- name: Wait for Docker services
env:
diff --git a/.github/workflows/ci-agent-skills.yml b/.github/workflows/ci-agent-skills.yml
index 60178f777f48..a38624a4daea 100644
--- a/.github/workflows/ci-agent-skills.yml
+++ b/.github/workflows/ci-agent-skills.yml
@@ -93,7 +93,7 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Install sqlx-cli
- run: cargo install sqlx-cli --version 0.8.0 --features postgres --no-default-features --locked
+ uses: ./.github/actions/setup-sqlx-cli
- name: Lint skills
run: ./bin/hogli lint:skills
@@ -179,7 +179,7 @@ jobs:
save-if: false
- name: Install sqlx-cli
- run: cargo install sqlx-cli --version 0.8.0 --features postgres --no-default-features --locked
+ uses: ./.github/actions/setup-sqlx-cli
- name: Wait for Docker services
env:
diff --git a/.github/workflows/ci-ai.yml b/.github/workflows/ci-ai.yml
index 9cbd57928f5b..db69cee84a03 100644
--- a/.github/workflows/ci-ai.yml
+++ b/.github/workflows/ci-ai.yml
@@ -112,7 +112,7 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Install sqlx-cli
- run: cargo install sqlx-cli --version 0.8.0 --features postgres --no-default-features --locked
+ uses: ./.github/actions/setup-sqlx-cli
- name: Add service hostnames to /etc/hosts
run: sudo echo "127.0.0.1 db redis7 kafka clickhouse clickhouse-coordinator objectstorage seaweedfs temporal" | sudo tee -a /etc/hosts
diff --git a/.github/workflows/ci-e2e-playwright.yml b/.github/workflows/ci-e2e-playwright.yml
index 05be812e7544..5aede56edd7f 100644
--- a/.github/workflows/ci-e2e-playwright.yml
+++ b/.github/workflows/ci-e2e-playwright.yml
@@ -478,7 +478,7 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Install sqlx-cli
- run: cargo install sqlx-cli --version 0.8.0 --features postgres --no-default-features --locked
+ uses: ./.github/actions/setup-sqlx-cli
- name: Restore schema cache from master
# Cache key is the merge-base SHA — produced by ci-backend on master push.
diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index 5d479da64cca..d6701753e0e2 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -375,8 +375,7 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Install sqlx-cli
- run: |
- cargo install sqlx-cli --version 0.8.0 --features postgres --no-default-features --locked
+ uses: ./.github/actions/setup-sqlx-cli
- name: Build Rust flags service
working-directory: rust