mirror of
https://github.com/FlipsideCrypto/livequery-models.git
synced 2026-02-06 10:56:46 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6e472d80c |
22
.github/workflows/dbt_integration_test.yml
vendored
22
.github/workflows/dbt_integration_test.yml
vendored
@ -3,14 +3,21 @@ run-name: ${{ github.event.inputs.branch }}
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
environment:
|
||||
required: false
|
||||
type: string
|
||||
default: hosted
|
||||
schedule:
|
||||
# Runs “Daily at midnight GMT” (see https://crontab.guru)
|
||||
# Runs "Daily at midnight GMT" (see https://crontab.guru)
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
concurrency: ${{ github.workflow }}
|
||||
|
||||
jobs:
|
||||
test:
|
||||
# For scheduled runs, run both environments
|
||||
test-scheduled:
|
||||
if: ${{ github.event_name == 'schedule' }}
|
||||
name: ${{ matrix.environment }}
|
||||
uses: ./.github/workflows/dbt.yml
|
||||
secrets: inherit
|
||||
@ -26,3 +33,14 @@ jobs:
|
||||
warehouse: ${{ matrix.warehouse }}
|
||||
environment: ${{ matrix.environment }}
|
||||
command: dbt test -s test___utils_udf_introspect
|
||||
|
||||
# For manual dispatch, run only the specified environment
|
||||
test-dispatch:
|
||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||
name: ${{ github.event.inputs.environment }}
|
||||
uses: ./.github/workflows/dbt.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
warehouse: ${{ (github.event.inputs.environment == 'workflow_prod' || github.event.inputs.environment == 'workflow_dev') && 'DBT_CLOUD' || 'XSMALL' }}
|
||||
environment: ${{ github.event.inputs.environment == 'workflow_prod' && 'prod' || (github.event.inputs.environment == 'workflow_dev' && 'dev' || github.event.inputs.environment) }}
|
||||
command: dbt test -s test___utils_udf_introspect
|
||||
|
||||
Loading…
Reference in New Issue
Block a user