From c984c6ac7dc46cd08b8c62f17f88efd857c53fa3 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Tue, 4 Mar 2025 11:15:21 -0600 Subject: [PATCH] update logging --- .github/workflows/main.yml | 1 - .../structured-logging-schema-check.yml | 27 +++++++++++++++++-- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b63cfa62b10..eaad9ee197c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -205,7 +205,6 @@ jobs: python-version: ${{ matrix.python-version }} - name: Run postgres setup script - if: runner.os == 'Linux' run: | ./test/setup_db.sh env: diff --git a/.github/workflows/structured-logging-schema-check.yml b/.github/workflows/structured-logging-schema-check.yml index b93e248cda6..da8def26229 100644 --- a/.github/workflows/structured-logging-schema-check.yml +++ b/.github/workflows/structured-logging-schema-check.yml @@ -67,6 +67,24 @@ jobs: DBT_TEST_USER_2: dbt_test_user_2 DBT_TEST_USER_3: dbt_test_user_3 + services: + # Label used to access the service container + postgres: + # Docker Hub image + image: postgres + # Provide the password for postgres + env: + POSTGRES_PASSWORD: password + POSTGRES_USER: postgres + # Set health checks to wait until postgres has started + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 5432:5432 + steps: - name: checkout dev uses: actions/checkout@v4 @@ -85,8 +103,13 @@ jobs: pip install tox tox --version - - name: Set up postgres - uses: ./.github/actions/setup-postgres-linux + - name: Run postgres setup script + run: | + ./test/setup_db.sh + env: + PGHOST: localhost + PGPORT: 5432 + PGPASSWORD: password - name: ls run: ls