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.

chore(ci): check rust formatting before restoring caches (#130478)

posthog[bot]3572bbfe0ca9
diff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.yml
index 9e90090f8d09..10f80b6e020b 100644
--- a/.github/workflows/ci-rust.yml
+++ b/.github/workflows/ci-rust.yml
@@ -887,6 +887,9 @@ jobs:
toolchain: 1.91.1
components: clippy,rustfmt
+ - name: Check format
+ run: cargo fmt -- --check
+
- name: Set sccache WebDAV key prefix (Cargo.lock hash)
run: echo "SCCACHE_WEBDAV_KEY_PREFIX=cargo-${{ hashFiles('rust/Cargo.lock') }}" >> "$GITHUB_ENV"
@@ -900,9 +903,6 @@ jobs:
workspaces: rust
save-if: ${{ github.ref == 'refs/heads/master' }}
- - name: Check format
- run: cargo fmt -- --check
-
- name: Run clippy
env:
# Use system OpenSSL instead of vendored to avoid assembly build issue (2026-01-13)