From 308b1a8179f977bc80fbb1d66b7f84059b1b30b1 Mon Sep 17 00:00:00 2001 From: tarikceric <46071768+tarikceric@users.noreply.github.com> Date: Mon, 14 Apr 2025 10:01:45 -0700 Subject: [PATCH] add integration test files (#827) * add integration test files * update integration 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 00000000..8e8d3ac2 --- /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 00000000..70a8fc84 --- /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"