mirror of
https://github.com/FlipsideCrypto/optimism-models.git
synced 2026-02-06 15:21:51 +00:00
add/github-actions-job-update (#63)
* added and updated dbt run/test jobs for optimism * changed naming convention * updated incremental job name * removed placeholder job
This commit is contained in:
parent
c8c78bf62d
commit
34a2b3d334
35
.github/workflows/dbt_run_api_feeder_table.yml
vendored
Normal file
35
.github/workflows/dbt_run_api_feeder_table.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: dbt_run_api_feeder_table
|
||||
run-name: dbt_run_api_feeder_table
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
# Runs "at 8:00 UTC" (see https://crontab.guru)
|
||||
- cron: '0 8 * * *'
|
||||
|
||||
env:
|
||||
DBT_PROFILES_DIR: ./
|
||||
|
||||
ACCOUNT: "${{ secrets.ACCOUNT }}"
|
||||
ROLE: "${{ secrets.ROLE }}"
|
||||
USER: "${{ secrets.USER }}"
|
||||
PASSWORD: "${{ secrets.PASSWORD }}"
|
||||
REGION: "${{ secrets.REGION }}"
|
||||
DATABASE_DEV: "${{ secrets.DATABASE_DEV }}"
|
||||
DATABASE_PROD: "${{ secrets.DATABASE_PROD }}"
|
||||
WAREHOUSE_DEV: "${{ secrets.WAREHOUSE_DEV }}"
|
||||
WAREHOUSE_PROD: "${{ secrets.WAREHOUSE_PROD }}"
|
||||
SCHEMA: "${{ secrets.SCHEMA }}"
|
||||
|
||||
|
||||
jobs:
|
||||
called_workflow_template:
|
||||
uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/dbt_run_template.yml@main
|
||||
with:
|
||||
dbt_command: '["dbt run -m models/silver/api_udf"]'
|
||||
secrets: inherit # pass all secrets
|
||||
|
||||
|
||||
|
||||
35
.github/workflows/dbt_run_dev_refresh.yml
vendored
Normal file
35
.github/workflows/dbt_run_dev_refresh.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: dbt_run_dev_refresh
|
||||
run-name: dbt_run_dev_refresh
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
# Runs "at 9:00 UTC" (see https://crontab.guru)
|
||||
- cron: '0 9 * * *'
|
||||
|
||||
env:
|
||||
DBT_PROFILES_DIR: ./
|
||||
|
||||
ACCOUNT: "${{ secrets.ACCOUNT }}"
|
||||
ROLE: "${{ secrets.ROLE }}"
|
||||
USER: "${{ secrets.USER }}"
|
||||
PASSWORD: "${{ secrets.PASSWORD }}"
|
||||
REGION: "${{ secrets.REGION }}"
|
||||
DATABASE_DEV: "${{ secrets.DATABASE_DEV }}"
|
||||
DATABASE_PROD: "${{ secrets.DATABASE_PROD }}"
|
||||
WAREHOUSE_DEV: "${{ secrets.WAREHOUSE_DEV }}"
|
||||
WAREHOUSE_PROD: "${{ secrets.WAREHOUSE_PROD }}"
|
||||
SCHEMA: "${{ secrets.SCHEMA }}"
|
||||
|
||||
|
||||
jobs:
|
||||
called_workflow_template:
|
||||
uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/dbt_run_template.yml@main
|
||||
with:
|
||||
dbt_command: '["dbt run-operation run_sp_create_prod_clone"]'
|
||||
secrets: inherit # pass all secrets
|
||||
|
||||
|
||||
|
||||
@ -6,8 +6,8 @@ on:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
# Runs "every 6 hours" (see https://crontab.guru)
|
||||
- cron: '0 */6 * * *'
|
||||
# Runs "every 2 hours" (see https://crontab.guru)
|
||||
- cron: '0 */2 * * *'
|
||||
|
||||
env:
|
||||
DBT_PROFILES_DIR: ./
|
||||
@ -28,7 +28,7 @@ jobs:
|
||||
called_workflow_template:
|
||||
uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/dbt_run_template.yml@main
|
||||
with:
|
||||
dbt_command: '["dbt run -m ./models/streamline/*"]'
|
||||
dbt_command: '["dbt run --exclude models/silver/api_udf"]'
|
||||
secrets: inherit # pass all secrets
|
||||
|
||||
|
||||
35
.github/workflows/dbt_test.yml
vendored
Normal file
35
.github/workflows/dbt_test.yml
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
name: dbt_test
|
||||
run-name: dbt_test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
# Runs "at 9:00 UTC" (see https://crontab.guru)
|
||||
- cron: '0 9 * * *'
|
||||
|
||||
env:
|
||||
DBT_PROFILES_DIR: ./
|
||||
|
||||
ACCOUNT: "${{ secrets.ACCOUNT }}"
|
||||
ROLE: "${{ secrets.ROLE }}"
|
||||
USER: "${{ secrets.USER }}"
|
||||
PASSWORD: "${{ secrets.PASSWORD }}"
|
||||
REGION: "${{ secrets.REGION }}"
|
||||
DATABASE_DEV: "${{ secrets.DATABASE_DEV }}"
|
||||
DATABASE_PROD: "${{ secrets.DATABASE_PROD }}"
|
||||
WAREHOUSE_DEV: "${{ secrets.WAREHOUSE_DEV }}"
|
||||
WAREHOUSE_PROD: "${{ secrets.WAREHOUSE_PROD }}"
|
||||
SCHEMA: "${{ secrets.SCHEMA }}"
|
||||
|
||||
|
||||
jobs:
|
||||
called_workflow_template:
|
||||
uses: FlipsideCrypto/analytics-workflow-templates/.github/workflows/dbt_run_template.yml@main
|
||||
with:
|
||||
dbt_command: '["dbt test"]'
|
||||
secrets: inherit # pass all secrets
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user