From 92040e551337c6d348652313945015fb3fe84bd5 Mon Sep 17 00:00:00 2001 From: Cameron Hotchkies Date: Fri, 17 Jul 2026 10:07:22 -0700 Subject: [PATCH] fix(ci): use git diff for path filtering (#2029) Signed-off-by: Cameron Hotchkies Co-authored-by: npub1x4hk035p3p9q39a3fcrd2fe30lpkrhr5dwe0cqzzjphxyyh8m0gsq4vqap <356f67c681884a0897b14e06d527317fc361dc746bb2fc0042906e6212e7dbd1@sprout-oss.stage.blox.sqprod.co> --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0e304496df..a665951108 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,7 @@ concurrency: env: CARGO_TERM_COLOR: always + BUZZ_TEST_POSTGRES_PASSWORD: buzz_dev PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright jobs: @@ -28,9 +29,12 @@ jobs: mobile: ${{ steps.filter.outputs.mobile }} steps: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 + with: + fetch-depth: 2 - uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2 id: filter with: + token: '' filters: | rust: - 'crates/**' @@ -453,7 +457,7 @@ jobs: run: | chmod +x ./target/ci/buzz-relay nohup env \ - DATABASE_URL=postgres://buzz:buzz_dev@localhost:5432/buzz \ + DATABASE_URL="postgres://buzz:${BUZZ_TEST_POSTGRES_PASSWORD}@localhost:5432/buzz" \ REDIS_URL=redis://localhost:6379 \ RELAY_URL=ws://localhost:3000 \ BUZZ_BIND_ADDR=0.0.0.0:3000 \ @@ -613,7 +617,7 @@ jobs: run: | chmod +x ./target/ci/buzz-relay nohup env \ - DATABASE_URL=postgres://buzz:buzz_dev@localhost:5432/buzz \ + DATABASE_URL="postgres://buzz:${BUZZ_TEST_POSTGRES_PASSWORD}@localhost:5432/buzz" \ REDIS_URL=redis://localhost:6379 \ RELAY_URL=ws://localhost:3000 \ BUZZ_BIND_ADDR=0.0.0.0:3000 \ @@ -640,7 +644,7 @@ jobs: run: | cargo test --profile ci -p buzz-relay claim_ -- --ignored --nocapture env: - DATABASE_URL: postgres://buzz:buzz_dev@localhost:5432/buzz + DATABASE_URL: postgres://buzz:${{ env.BUZZ_TEST_POSTGRES_PASSWORD }}@localhost:5432/buzz - name: NIP-ER reminder e2e # Feature e2e for NIP-ER (Event Reminders, kind:30300): write-path # validation, author-only read filtering, and scheduler delivery against