Skip to content

Commit

Permalink
rename workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Jan 31, 2024
1 parent 0421ac6 commit 337bc3f
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
merge_group:
types: [checks_requested]
workflow_dispatch:
workflow_call:

permissions: read-all

Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ci_dbt_core_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
# Runs all tests in dbt-core with this branch of dbt-common to ensure nothing is broken

# **why?**
# Ensure dbt-common changes do nto break dbt-core
# Ensure dbt-common changes do not break dbt-core

# **when?**
# This will run when trying to merge a PR into main.
# It can also be manually triggered.

## TODO: This is a stub. It does nothing right now.
# It will be updated in the future as part of https://github.com/dbt-labs/dbt-common/issues/18

name: Test Against dbt-core
name: "Test Branches of dbt-core + dbt-common"
run-name: "Test dbt-core@${{ inputs.dbt-core-ref }} with dbt-common@${{ inputs.dbt-common-ref }}"

on:
merge_group:
Expand All @@ -20,11 +18,9 @@ on:
inputs:
dbt-core-ref:
description: "The branch of dbt-core to test against"
required: true
default: "main"
dbt-common-ref:
description: "The branch of dbt-common to test against"
required: true
default: "main"
workflow_call:
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
merge_group:
types: [checks_requested]
workflow_dispatch:
workflow_call:

permissions: read-all

Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/scheduled_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# **what?**
# The purpose of this workflow is to trigger CI to run for each
# on a regular cadence. This will also test core + common to prevent breaks.
# If the CI workflow fails, it will post to #dev-core-alerts to raise awareness.

# **why?**
# Ensures dbt-common is always shippable and not broken.
# Also, can catch any dependencies shifting beneath us that might
# introduce breaking changes (could also impact Cloud).

# **when?**
# Mainly on a schedule of 9:00, 13:00, 18:00 UTC everyday.
# Manual trigger can also test on demand

name: Scheduled Testing

on:
schedule:
- cron: '0 9,13,18 * * *' # 9:00, 13:00, 18:00 UTC

workflow_dispatch: # for manual triggering

# no special access is needed
permissions: read-all

jobs:
run_tests:
uses: dbt-labs/actions/.github/workflows/release-branch-tests.yml@main
with:
workflows_to_run: '["ci_tests.yml", "build.yml", "ci_dbt_core_testing.yml"]'
secrets: inherit

0 comments on commit 337bc3f

Please sign in to comment.