Skip to content

Add Postgres integration tests to CI #53

@kitplummer

Description

@kitplummer

Summary

tests/postgres_tests.rs (13 tests) exists but is never run in CI — it gracefully skips when Postgres is unavailable.

Add a Postgres Docker service to CI:

postgres-integration:
  services:
    postgres:
      image: postgres:16
      env:
        POSTGRES_PASSWORD: test
      ports: ["5432:5432"]
  env:
    POSTGRES_URL: postgres://postgres:test@localhost/peat_gateway_test
  steps:
    - run: cargo test --features postgres --test postgres_tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Nice to havetestingTest coverage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions