distributed 1.7.3

CQRS/ES framework for Rust using Plain Old Rust Structs — append-only events, replay, snapshots, outbox, service bus, and pluggable infrastructure
Documentation
name: Postgres Integration Tests

# Reusable workflow: referenced via `uses: ./.github/workflows/integration-postgres.yaml`
# from both the PR-quality and push-to-main pipelines.
on:
  workflow_call:

jobs:
  postgres:
    name: Postgres Integration Tests
    runs-on: ubuntu-latest
    services:
      postgres:
        image: postgres:18-alpine
        env:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: postgres
          POSTGRES_DB: distributed_test
        ports:
          - 5432:5432
        options: >-
          --health-cmd "pg_isready -U postgres -d distributed_test"
          --health-interval 5s
          --health-timeout 5s
          --health-retries 10
    env:
      CARGO_TERM_COLOR: always
      DATABASE_URL: postgres://postgres:postgres@localhost:5432/distributed_test
    steps:
      - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
        with:
          persist-credentials: false
      - uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8
        with:
          toolchain: stable
      # These tests run with --all-features, which compiles rdkafka; librdkafka's
      # bundled cmake build needs curl/curl.h (the runner has libcurl's runtime
      # but not its headers).
      - name: Install librdkafka build dependencies
        run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
      - name: Run Postgres integration tests
        run: |
          cargo test --test postgres_repository --all-features --verbose
          cargo test --test postgres_repository_conformance --all-features --verbose
          cargo test --test postgres_transport --all-features --verbose
          cargo test --test distributed_read_model --all-features --verbose