test udfs #30
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 | |
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
type: choice | |
description: DBT Run Environment | |
required: true | |
options: | |
- dev | |
- prod | |
default: dev | |
warehouse: | |
type: choice | |
description: Snowflake warehouse | |
required: true | |
options: | |
- DBT | |
- DBT_CLOUD | |
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: DBT_CLOUD | |
environment: workflow_prod | |
command: test --selector test_udfs | |
dispached: | |
uses: ./.github/workflows/dbt.yml | |
if: github.event_name == 'workflow_dispatch' | |
secrets: inherit | |
with: | |
warehouse: ${{ inputs.warehouse }} | |
environment: workflow_${{ inputs.environment }} | |
command: test --selector test_udfs |