diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c3b8366b..1c2358d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,6 +16,8 @@ on: branches: - "main" pull_request: + merge_group: + types: [checks_requested] workflow_dispatch: permissions: read-all diff --git a/.github/workflows/ci_code_quality.yml b/.github/workflows/ci_code_quality.yml index 7b12e3d5..63eb5d4f 100644 --- a/.github/workflows/ci_code_quality.yml +++ b/.github/workflows/ci_code_quality.yml @@ -16,6 +16,8 @@ on: branches: - "main" pull_request: + merge_group: + types: [checks_requested] workflow_dispatch: permissions: read-all diff --git a/.github/workflows/ci_dbt_core_testing.yml b/.github/workflows/ci_dbt_core_testing.yml new file mode 100644 index 00000000..931b638e --- /dev/null +++ b/.github/workflows/ci_dbt_core_testing.yml @@ -0,0 +1,50 @@ +# **what?** +# 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 + +# **when?** +# This will run when trying to merge a PR into main. +# It can also be manually triggered. + +name: Test Against dbt-core + +on: + merge_group: + types: [checks_requested] + workflow_dispatch: + +permissions: read-all + +defaults: + run: + shell: bash + +jobs: + test-dbt-core: + name: "This does nothing right now - always passes" + + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: "Check out dbt-core" + uses: actions/checkout@v3 + + - name: "Set up Python 3.11" + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: "Update the version of dbt-common" + run: | + echo "Update the version of dbt-common ref'd in dbt-core" + + - name: "Install dbt-core" + run: | + echo "Install dbt-core with updated dbt-common ref" + + - name: "Run Tests" + run: | + echo "Running tests in future versions." diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 03cdffb8..67bfe661 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -16,6 +16,8 @@ on: branches: - "main" pull_request: + merge_group: + types: [checks_requested] workflow_dispatch: permissions: read-all @@ -48,7 +50,7 @@ jobs: - name: "Set up Python ${{ matrix.python-version }}" uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: "${{ matrix.python-version }}" - name: "Install Hatch" shell: bash