From 04000723d7eca94818a8b669f8456ca3466ecffe Mon Sep 17 00:00:00 2001 From: Danielshih Date: Wed, 11 Feb 2026 03:50:04 +0000 Subject: [PATCH 1/2] refactor CI workflows to remove unused postgres and mysql services --- .github/workflows/ci.yml | 52 ----------------------------------- .github/workflows/quality.yml | 10 ------- 2 files changed, 62 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 53c5ff2..146a846 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,37 +18,6 @@ jobs: matrix: os: [ubuntu-latest] rust: [stable, beta] - postgres: ['14', '15', '16', '17', '18'] - - services: - postgres: - image: postgres:${{ matrix.postgres }}-alpine - env: - POSTGRES_PASSWORD: test.123 - POSTGRES_USER: postgres - POSTGRES_DB: postgres - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5432:5432 - - mysql: - image: mysql:8.0 - env: - MYSQL_ROOT_PASSWORD: test.123 - MYSQL_DATABASE: cdc_db - MYSQL_USER: cdc_user - MYSQL_PASSWORD: test.123 - options: >- - --health-cmd="mysqladmin ping" - --health-interval=10s - --health-timeout=5s - --health-retries=3 - ports: - - 3306:3306 steps: - uses: actions/checkout@v4 @@ -86,9 +55,6 @@ jobs: - name: Check formatting run: cargo fmt --all -- --check - # - name: Run clippy - # run: cargo clippy --all-targets --all-features -- -D clippy::correctness -D clippy::suspicious -D clippy::complexity -D clippy::perf - - name: Build run: cargo build --verbose @@ -120,9 +86,6 @@ jobs: - name: Build documentation run: cargo doc --no-deps --all-features - - - name: Check for broken intra-doc links - run: cargo doc --no-deps --all-features env: RUSTDOCFLAGS: "-D warnings" @@ -130,21 +93,6 @@ jobs: name: Code Coverage runs-on: ubuntu-latest - services: - postgres: - image: postgres:16-alpine - env: - POSTGRES_PASSWORD: test.123 - POSTGRES_USER: postgres - POSTGRES_DB: postgres - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 - ports: - - 5432:5432 - steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index cfe28a4..584a38c 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -21,16 +21,6 @@ jobs: - name: Check formatting run: cargo fmt --all -- --check - # clippy: - # name: Clippy - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v4 - - # - uses: dtolnay/rust-toolchain@stable - # with: - # components: clippy - - name: Install dependencies run: | sudo apt-get update From 26b4e4c82f6f251c7faba3a5a39e17ffbaa4e2ce Mon Sep 17 00:00:00 2001 From: Danielshih Date: Wed, 11 Feb 2026 04:56:05 +0000 Subject: [PATCH 2/2] add code coverage badge to README --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 22902a9..4a28da6 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Crates.io Downloads (recent)](https://img.shields.io/crates/dr/pg_walstream)](https://crates.io/crates/pg_walstream) [![Crates.io Total Downloads](https://img.shields.io/crates/d/pg_walstream)](https://crates.io/crates/pg_walstream) [![docs.rs](https://img.shields.io/docsrs/pg_walstream)](https://docs.rs/pg-walstream) +[![codecov](https://codecov.io/gh/isdaniel/pg-walstream/graph/badge.svg?token=e0zmvpOWvz)](https://codecov.io/gh/isdaniel/pg-walstream) # pg-walstream