From fa603ba0d833c3ef3e937c360a7094ca408eef77 Mon Sep 17 00:00:00 2001 From: Eric Laurello Date: Mon, 5 May 2025 10:30:59 -0400 Subject: [PATCH] int test --- .github/workflows/dbt_integration_test.yml | 34 ++++++++++++++++++++++ selectors.yml | 7 +++++ 2 files changed, 41 insertions(+) create mode 100644 .github/workflows/dbt_integration_test.yml create mode 100644 selectors.yml diff --git a/.github/workflows/dbt_integration_test.yml b/.github/workflows/dbt_integration_test.yml new file mode 100644 index 0000000..8e8d3ac --- /dev/null +++ b/.github/workflows/dbt_integration_test.yml @@ -0,0 +1,34 @@ +name: dbt_run_integration_test +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: ${{ inputs.environment }} + warehouse: ${{ needs.prepare_vars.outputs.warehouse }} + secrets: inherit \ No newline at end of file diff --git a/selectors.yml b/selectors.yml new file mode 100644 index 0000000..f43565e --- /dev/null +++ b/selectors.yml @@ -0,0 +1,7 @@ +selectors: + - name: integration_tests + description: "Selector for integration tests" + definition: + union: + - method: fqn + value: "livequery_models.deploy.core._utils" \ No newline at end of file