test udfs #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test udfs | |
run-name: ${{ github.event.inputs.branch }} | |
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
type: choice | |
description: DBT Run Environment | |
required: true | |
options: | |
- dev | |
- prod | |
- hosted | |
default: dev | |
warehouse: | |
type: choice | |
description: Snowflake warehouse | |
required: true | |
options: | |
- DBT | |
- DBT_CLOUD | |
- XSMALL | |
default: DBT | |
schedule: | |
# Runs “Daily at midnight GMT” (see https://crontab.guru) | |
- cron: '0 0 * * *' | |
concurrency: | |
group: ${{ github.workflow }} | |
jobs: | |
scheduled: | |
uses: ./.github/workflows/dbt.yml | |
if: github.event_name == 'schedule' || github.event_name == 'push' | |
secrets: inherit | |
with: | |
warehouse: ${{ vars.WAREHOUSE }} | |
environment: prod | |
command: dbt test --selector test_udfs --threads 24 | |
dispatched: | |
uses: ./.github/workflows/dbt.yml | |
if: github.event_name == 'workflow_dispatch' | |
secrets: inherit | |
with: | |
warehouse: ${{ inputs.warehouse }} | |
environment: ${{ inputs.environment }} | |
command: dbt test --selector test_udfs --threads 24 |