From ba493866b4664f66387428731400f67043d1b8dc Mon Sep 17 00:00:00 2001 From: drethereum Date: Tue, 29 Apr 2025 11:13:44 -0600 Subject: [PATCH] update integration test --- .github/workflows/dbt_integration_test.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dbt_integration_test.yml b/.github/workflows/dbt_integration_test.yml index bfc2bf0..caee813 100644 --- a/.github/workflows/dbt_integration_test.yml +++ b/.github/workflows/dbt_integration_test.yml @@ -3,17 +3,34 @@ run-name: ${{ github.event.inputs.branch }} on: workflow_dispatch: + inputs: + environment: + required: true + type: string concurrency: ${{ github.workflow }} jobs: + prepare_vars: + runs-on: ubuntu-latest + environment: + name: ${{ inputs.environment }} + outputs: + warehouse: ${{ steps.set_outputs.outputs.warehouse }} + steps: + - name: Set warehouse output + id: set_outputs + run: | + echo "warehouse=${{ vars.WAREHOUSE }}" >> $GITHUB_OUTPUT + called_workflow_template: + needs: prepare_vars uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/dbt.yml@main with: command: > dbt test --selector 'integration_tests' - environment: ${{ github.ref == 'refs/heads/main' && 'workflow_prod' || 'workflow_dev' }} - warehouse: ${{ vars.WAREHOUSE }} + environment: ${{ inputs.environment }} + warehouse: ${{ needs.prepare_vars.outputs.warehouse }} secrets: inherit notify-failure: