mirror of
https://github.com/FlipsideCrypto/livequery-base.git
synced 2026-02-06 11:16:44 +00:00
cleanup .github/workflows/dbt_integration_test.yml (#68)
This commit is contained in:
parent
9cd81aec54
commit
1a46622b2e
51
.github/workflows/dbt_integration_test.yml
vendored
51
.github/workflows/dbt_integration_test.yml
vendored
@ -3,56 +3,21 @@ 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: ${{ github.workflow }}
|
||||
|
||||
jobs:
|
||||
hosted:
|
||||
test:
|
||||
name: ${{ matrix.environment }}
|
||||
uses: ./.github/workflows/dbt.yml
|
||||
if: github.event_name == 'schedule' || github.event_name == 'push'
|
||||
secrets: inherit
|
||||
concurrency: ${{ github.workflow }}
|
||||
strategy:
|
||||
matrix:
|
||||
environment: [hosted, prod]
|
||||
with:
|
||||
warehouse: ${{ vars.WAREHOUSE }}
|
||||
environment: hosted
|
||||
environment: ${{ matrix.environment }}
|
||||
command: dbt test -s test___utils_udf_introspect
|
||||
|
||||
prod:
|
||||
uses: ./.github/workflows/dbt.yml
|
||||
if: github.event_name == 'schedule' || github.event_name == 'push'
|
||||
secrets: inherit
|
||||
concurrency: ${{ github.workflow }}
|
||||
with:
|
||||
warehouse: ${{ vars.WAREHOUSE }}
|
||||
environment: prod
|
||||
command: dbt test -s test___utils_udf_introspect
|
||||
|
||||
dispatched:
|
||||
uses: ./.github/workflows/dbt.yml
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
secrets: inherit
|
||||
concurrency: ${{ github.workflow }}
|
||||
with:
|
||||
warehouse: ${{ inputs.warehouse }}
|
||||
environment: ${{ inputs.environment }}
|
||||
command: dbt test -s test___utils_udf_introspect
|
||||
Loading…
Reference in New Issue
Block a user