Skip to content

Commit

Permalink
use vars
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmarxm committed Jul 29, 2024
1 parent 7488cd7 commit 1120236
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/run_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
POSTGRES_DBT_PASSWORD: ${{ secrets.POSTGRES_DBT_PASSWORD }}
POSTGRES_DBT_DBNAME: ${{ secrets.POSTGRES_DBT_DBNAME }}
POSTGRES_DBT_SCHEMA: ${{ secrets.POSTGRES_DBT_SCHEMA }}
AIRBYTE_DATABASE: "postgres"
POSTGRES_VARS: '{airbyte_database:${{ secrets.POSTGRES_DBT_DBNAME }}, fivetran_database:${{ secrets.POSTGRES_DBT_DBNAME }}}''
run: |
poetry run dbt deps
poetry run dbt run --target postgres --full-refresh --vars '{airbyte_database:${AIRBYTE_DATABASE}, fivetran_database:${AIRBYTE_DATABASE}}'
poetry run dbt run --target postgres --full-refresh --vars $POSTGRES_VARS
- name: Run Integration Tests for Snowflake
if: always()
Expand All @@ -59,10 +59,10 @@ jobs:
SNOWFLAKE_DBT_DATABASE: ${{ secrets.SNOWFLAKE_DBT_DATABASE }}
SNOWFLAKE_DBT_WAREHOUSE: ${{ secrets.SNOWFLAKE_DBT_WAREHOUSE }}
SNOWFLAKE_DBT_SCHEMA: ${{ secrets.SNOWFLAKE_DBT_SCHEMA }}
AIRBYTE_DATABASE: "INTEGRATION_TEST_DESTINATION"
SNOWFLAKE_VARS: '{airbyte_database:${{ secrets.SNOWFLAKE_DBT_DATABASE }}, fivetran_database:${{ secrets.SNOWFLAKE_DBT_DATABASE }}}''
run: |
poetry run dbt deps
poetry run dbt run --target snowflake --full-refresh --vars '{airbyte_database:${AIRBYTE_DATABASE}, fivetran_database:${AIRBYTE_DATABASE}}'
poetry run dbt run --target snowflake --full-refresh --vars $SNOWFLAKE_VARS
- name: Run Integration Tests for BigQuery
if: always()
Expand All @@ -71,7 +71,7 @@ jobs:
BIGQUERY_DBT_PROJECT: ${{ secrets.BIGQUERY_DBT_PROJECT }}
BIGQUERY_DBT_DATASET: ${{ secrets.BIGQUERY_DBT_DATASET }}
GCLOUD_SERVICE_KEY: ${{ secrets.GCLOUD_SERVICE_KEY }}
BIGQUERY_VARS: "{airbyte_database:${{ secrets.BIGQUERY_DBT_PROJECT }}, fivetran_database:${{ secrets.BIGQUERY_DBT_PROJECT }}}"
BIGQUERY_VARS: '{airbyte_database:${{ secrets.BIGQUERY_DBT_PROJECT }}, fivetran_database:${{ secrets.BIGQUERY_DBT_PROJECT }}}''
run: |
poetry run dbt deps
poetry run dbt run --target bigquery --full-refresh --vars $BIGQUERY_VARS

0 comments on commit 1120236

Please sign in to comment.