Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/test-postgres-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test local postgres (integration)

on:
workflow_dispatch:
pull_request:
paths:
- "crates/clickhousectl/src/local/**"
- "crates/clickhousectl/Cargo.toml"
- "Cargo.lock"
- "scripts/test-postgres-integration.sh"
- ".github/workflows/test-postgres-integration.yml"

permissions:
contents: read

jobs:
integration:
name: local postgres edge cases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache cargo build
uses: Swatinem/rust-cache@v2

- name: Build clickhousectl
run: cargo build -p clickhousectl

- name: Pull postgres images
run: |
docker pull postgres:16-alpine
docker pull postgres:17-alpine
docker pull postgres:18

- name: Run integration tests
run: scripts/test-postgres-integration.sh
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/target
/.env
/.env.local
/.agents/
/.claude/
/.codex/
Expand Down
Loading
Loading