diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b50bd1c5..3a0f5eac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,7 @@ on: merge_group: types: [checks_requested] workflow_dispatch: + workflow_call: permissions: read-all diff --git a/.github/workflows/ci_dbt_core_testing.yml b/.github/workflows/ci_dbt_core_testing.yml index 81319deb..198b336f 100644 --- a/.github/workflows/ci_dbt_core_testing.yml +++ b/.github/workflows/ci_dbt_core_testing.yml @@ -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: @@ -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: diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 65e84006..43f35cbf 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -19,6 +19,7 @@ on: merge_group: types: [checks_requested] workflow_dispatch: + workflow_call: permissions: read-all diff --git a/.github/workflows/scheduled_testing.yml b/.github/workflows/scheduled_testing.yml new file mode 100644 index 00000000..a3d2f4c1 --- /dev/null +++ b/.github/workflows/scheduled_testing.yml @@ -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